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>
This commit is contained in:
parent
fe5f098055
commit
d71b0e9c00
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue