Skip to content

Commit

Permalink
netpoll: inverted down_trylock() test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed May 6, 2013
1 parent 243198d commit a3dbbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit a3dbbc2

Please sign in to comment.