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:
Dan Carpenter 2013-05-06 02:15:13 +00:00 committed by David S. Miller
parent 243198d09f
commit a3dbbc2bab

View File

@ -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)) {