diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-05-06 02:15:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-06 11:06:52 -0400 |
commit | a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e (patch) | |
tree | fa98bbbfb61ca0af110aab8d4129a98eefdbd02f /net | |
parent | 243198d09f535f5cd74114f1b779c3da25bc70c8 (diff) | |
download | op-kernel-dev-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.zip op-kernel-dev-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.tar.gz |
netpoll: inverted down_trylock() test
The return value is reversed from mutex_trylock().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/netpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index a5802a8..cec074b 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -206,7 +206,7 @@ static void netpoll_poll_dev(struct net_device *dev) * the dev_open/close paths use this to block netpoll activity * while changing device state */ - if (!down_trylock(&ni->dev_lock)) + if (down_trylock(&ni->dev_lock)) return; if (!netif_running(dev)) { |