Skip to content

Commit

Permalink
ax25: missplaced sock_put(sk)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
f6bvp authored and davem330 committed Aug 26, 2010
1 parent fe5f098 commit d71b0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ax25/ax25_ds_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d71b0e9

Please sign in to comment.