netpoll: inverted down_trylock() test
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 May 2013 02:15:13 +0000 (02:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 May 2013 15:06:52 +0000 (11:06 -0400)
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>
net/core/netpoll.c

index a5802a8b652f27983f41052df6047c1b7185a015..cec074be8c4378b56a01889165d55cc282808208 100644 (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)) {