diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-05-06 04:15:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-06 17:06:52 +0200 |
commit | a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e (patch) | |
tree | fa98bbbfb61ca0af110aab8d4129a98eefdbd02f /net/core | |
parent | rps_dev_flow_table_release(): no need to delay vfree() (diff) | |
download | linux-a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e.tar.xz linux-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>
Diffstat (limited to 'net/core')
-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 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)) { |