Message ID | 4C76DF30.7080908@free.fr |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Bernard F6BVP <f6bvp@free.fr> Date: Thu, 26 Aug 2010 23:40:00 +0200 > [PATCH] [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> Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/net/ax25/ax25_ds_timer.c 2010-08-26 23:36:45.000000000 +0200 +++ b/net/ax25/ax25_ds_timer.c 2010-08-26 19:55:13.000000000 +0200 @@ -112,8 +112,8 @@ 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;
[PATCH] [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>