OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe5f098
)
ax25: missplaced sock_put(sk)
author
Bernard Pidoux F6BVP
<f6bvp@free.fr>
Thu, 26 Aug 2010 11:40:00 +0000
(11:40 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 26 Aug 2010 22:18:27 +0000
(15:18 -0700)
This patch moves a missplaced sock_put(sk) after
bh_unlock_sock(sk)
like in other parts of AX25 driver.
Signed-off-by: Bernard Pidoux <f6bvp@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ax25/ax25_ds_timer.c
patch
|
blob
|
history
diff --git
a/net/ax25/ax25_ds_timer.c
b/net/ax25/ax25_ds_timer.c
index
2ce79df
..
c7d8143
100644
(file)
--- a/
net/ax25/ax25_ds_timer.c
+++ b/
net/ax25/ax25_ds_timer.c
@@
-112,8
+112,8
@@
void ax25_ds_heartbeat_expiry(ax25_cb *ax25)
if (sk) {
sock_hold(sk);
ax25_destroy_socket(ax25);
- sock_put(sk);
bh_unlock_sock(sk);
+ sock_put(sk);
} else
ax25_destroy_socket(ax25);
return;