[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130506121513.GA13930@elgon.mountain>
Date: Mon, 6 May 2013 15:15:13 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: "David S. Miller" <davem@...emloft.net>,
Neil Horman <nhorman@...driver.com>
Cc: Cong Wang <amwang@...hat.com>, Eric Dumazet <edumazet@...gle.com>,
Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [patch -next] netpoll: inverted down_trylock() test
The return value is reversed from mutex_trylock().
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index a5802a8..cec074b 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)) {
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists