projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243198d
)
netpoll: inverted down_trylock() test
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 6 May 2013 02:15:13 +0000
(
02:15
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 6 May 2013 15:06:52 +0000
(11:06 -0400)
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>
net/core/netpoll.c
patch
|
blob
|
history
diff --git
a/net/core/netpoll.c
b/net/core/netpoll.c
index a5802a8b652f27983f41052df6047c1b7185a015..cec074be8c4378b56a01889165d55cc282808208 100644
(file)
--- 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)) {