提交 a3dbbc2b 编写于 作者: D Dan Carpenter 提交者: David S. Miller

netpoll: inverted down_trylock() test

The return value is reversed from mutex_trylock().
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 243198d0
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册