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:
Родитель
243198d09f
Коммит
a3dbbc2bab
|
@ -206,7 +206,7 @@ static void netpoll_poll_dev(struct net_device *dev)
|
||||||
* the dev_open/close paths use this to block netpoll activity
|
* the dev_open/close paths use this to block netpoll activity
|
||||||
* while changing device state
|
* while changing device state
|
||||||
*/
|
*/
|
||||||
if (!down_trylock(&ni->dev_lock))
|
if (down_trylock(&ni->dev_lock))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!netif_running(dev)) {
|
if (!netif_running(dev)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче