patch-2.4.5 linux/include/linux/skbuff.h

Next file: linux/include/linux/smb.h
Previous file: linux/include/linux/serial_reg.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/include/linux/skbuff.h linux/include/linux/skbuff.h
@@ -1069,7 +1069,7 @@
 static inline int
 skb_cow(struct sk_buff *skb, unsigned int headroom)
 {
-	int delta = headroom - skb_headroom(skb);
+	int delta = (headroom > 16 ? headroom : 16) - skb_headroom(skb);
 
 	if (delta < 0)
 		delta = 0;

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