patch-2.4.0-test2 linux/net/appletalk/ddp.c

Next file: linux/net/bridge/br.c
Previous file: linux/net/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -1607,8 +1607,12 @@
 		 * Note. ddp-> becomes invalid at the realloc.
 		 */
 		if (skb_headroom(skb) < 22)
+		{
+			struct sk_buff *newskb;
 			/* 22 bytes - 12 ether, 2 len, 3 802.2 5 snap */
-			skb = skb_realloc_headroom(skb, 32);
+			newskb = skb_realloc_headroom(skb, 32);
+			kfree(skb);
+		}
 		else
 			skb = skb_unshare(skb, GFP_ATOMIC);
 		

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)