patch-2.4.0-test7 linux/net/appletalk/ddp.c
Next file: linux/net/core/dev.c
Previous file: linux/mm/slab.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Tue Aug 22 08:59:00 2000
- Orig file:
v2.4.0-test6/linux/net/appletalk/ddp.c
- Orig date:
Thu Jul 27 17:38:02 2000
diff -u --recursive --new-file v2.4.0-test6/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -1611,7 +1611,10 @@
struct sk_buff *newskb;
/* 22 bytes - 12 ether, 2 len, 3 802.2 5 snap */
newskb = skb_realloc_headroom(skb, 32);
- kfree(skb);
+ kfree_skb(skb);
+ if (!newskb)
+ return 0;
+ skb = newskb;
}
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)