patch-1.3.61 linux/net/unix/af_unix.c

Next file: linux/scripts/Configure
Previous file: linux/net/ipx/af_ipx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.60/linux/net/unix/af_unix.c linux/net/unix/af_unix.c
@@ -771,6 +771,7 @@
 				sk->protinfo.af_unix.other=NULL;
 				sock->state=SS_UNCONNECTED;
 				sti();
+				kfree_skb(skb, FREE_WRITE);
 				if(!sent)
 					return -ECONNRESET;
 				else
@@ -783,8 +784,8 @@
 			other=unix_find_other(sunaddr->sun_path, &err);
 			if(other==NULL)
 			{
-				kfree_skb(skb, FREE_WRITE);
 				sti();
+				kfree_skb(skb, FREE_WRITE);
 				if(sent)
 					return sent;
 				else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this