From: Dan Carpenter Date: Mon, 6 May 2013 02:15:13 +0000 (+0000) Subject: netpoll: inverted down_trylock() test X-Git-Tag: v4.13~9609^2~4 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e;p=mirror_ubuntu-bionic-kernel.git netpoll: inverted down_trylock() test The return value is reversed from mutex_trylock(). Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index a5802a8b652f..cec074be8c43 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -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)) {