Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d71b0e9c authored by Bernard Pidoux F6BVP's avatar Bernard Pidoux F6BVP Committed by David S. Miller
Browse files

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: default avatarBernard Pidoux <f6bvp@free.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fe5f0980
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;