Commit d71b0e9c0028f3af910226f995e0074873e16979

Authored by Bernard Pidoux F6BVP
Committed by David S. Miller
1 parent fe5f098055

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>

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

net/ax25/ax25_ds_timer.c
... ... @@ -112,8 +112,8 @@
112 112 if (sk) {
113 113 sock_hold(sk);
114 114 ax25_destroy_socket(ax25);
115   - sock_put(sk);
116 115 bh_unlock_sock(sk);
  116 + sock_put(sk);
117 117 } else
118 118 ax25_destroy_socket(ax25);
119 119 return;