summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-05-06 06:15:13 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-06 19:06:52 +0400
commita3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e (patch)
treefa98bbbfb61ca0af110aab8d4129a98eefdbd02f /net/core
parent243198d09f535f5cd74114f1b779c3da25bc70c8 (diff)
downloadlinux-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.tar.xz
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/core')
-rw-r--r--net/core/netpoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index a5802a8b652f..cec074be8c43 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)) {