Skip to content

Commit a3dbbc2

Browse files
Dan Carpenterdavem330
authored andcommitted
netpoll: inverted down_trylock() test
The return value is reversed from mutex_trylock(). Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 243198d commit a3dbbc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/netpoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void netpoll_poll_dev(struct net_device *dev)
206206
* the dev_open/close paths use this to block netpoll activity
207207
* while changing device state
208208
*/
209-
if (!down_trylock(&ni->dev_lock))
209+
if (down_trylock(&ni->dev_lock))
210210
return;
211211

212212
if (!netif_running(dev)) {

0 commit comments

Comments
 (0)