diff options
author | Bernard Pidoux F6BVP <f6bvp@free.fr> | 2010-08-26 07:40:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-26 18:18:27 -0400 |
commit | d71b0e9c0028f3af910226f995e0074873e16979 (patch) | |
tree | fea5f89a292a0acbcb696d7e5c4005f46e3f5dd8 | |
parent | fe5f098055ed7f701bfb16f8f87378cf67de9a0e (diff) |
ax25: missplaced sock_put(sk)
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>
-rw-r--r-- | net/ax25/ax25_ds_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ax25/ax25_ds_timer.c b/net/ax25/ax25_ds_timer.c index 2ce79df00680..c7d81436213d 100644 --- 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) | |||
112 | if (sk) { | 112 | if (sk) { |
113 | sock_hold(sk); | 113 | sock_hold(sk); |
114 | ax25_destroy_socket(ax25); | 114 | ax25_destroy_socket(ax25); |
115 | sock_put(sk); | ||
116 | bh_unlock_sock(sk); | 115 | bh_unlock_sock(sk); |
116 | sock_put(sk); | ||
117 | } else | 117 | } else |
118 | ax25_destroy_socket(ax25); | 118 | ax25_destroy_socket(ax25); |
119 | return; | 119 | return; |