patch-2.4.21 linux-2.4.21/net/core/sock.c

Next file: linux-2.4.21/net/core/wireless.c
Previous file: linux-2.4.21/net/core/skbuff.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/net/core/sock.c linux-2.4.21/net/core/sock.c
@@ -793,6 +793,7 @@
 					page = alloc_pages(sk->allocation, 0);
 					if (!page) {
 						err = -ENOBUFS;
+						skb_shinfo(skb)->nr_frags = i;
 						kfree_skb(skb);
 						goto failure;
 					}

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