Commit a3dbbc2bab8d9a6e55fc0af3906d1dddbc0c531e

Authored by Dan Carpenter
Committed by David S. Miller
1 parent 243198d09f

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -206,7 +206,7 @@
206 206 * the dev_open/close paths use this to block netpoll activity
207 207 * while changing device state
208 208 */
209   - if (!down_trylock(&ni->dev_lock))
  209 + if (down_trylock(&ni->dev_lock))
210 210 return;
211 211  
212 212 if (!netif_running(dev)) {