summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-05-06 02:15:13 +0000
committerDavid S. Miller <davem@davemloft.net>2013-05-06 11:06:52 -0400
commita3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e (patch)
treefa98bbbfb61ca0af110aab8d4129a98eefdbd02f
parent243198d09f535f5cd74114f1b779c3da25bc70c8 (diff)
downloadlinux-3.10-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.tar.gz
linux-3.10-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.tar.bz2
linux-3.10-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.zip
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>
-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 a5802a8b652..cec074be8c4 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)) {