Subject: [PATCH] [AX25] missplaced sock_put(sk)

From: Bernard F6BVP <[email-masked]>
Date: Thu, 26 Aug 2010 21:34:32 +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.

Bernard Pidoux

--- linux/net/ax25/ax25_ds_timer.c	2010-08-13 22:44:56.000000000 +0200
+++ linux/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;