mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
243198d09f
commit
a3dbbc2bab
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user