From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernard F6BVP Subject: [PATCH] [AX25] missplaced sock_put(sk) Date: Thu, 26 Aug 2010 23:40:00 +0200 Message-ID: <4C76DF30.7080908@free.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060201050109090202050908" Cc: davem@davemloft.net, linux-hams@vger.kernel.org, netdev@vger.kernel.org, bpidoux@free.fr To: ralf@linux-mips.org Return-path: Sender: linux-hams-owner@vger.kernel.org List-Id: netdev.vger.kernel.org This is a multi-part message in MIME format. --------------060201050109090202050908 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit [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 --------------060201050109090202050908 Content-Type: text/x-patch; name="ax25_ds_timer.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ax25_ds_timer.patch" --- 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; --------------060201050109090202050908--