patch-2.1.3 linux/drivers/net/ppp.c

Next file: linux/drivers/net/tulip.c
Previous file: linux/drivers/net/ni65.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.2/linux/drivers/net/ppp.c linux/drivers/net/ppp.c
@@ -3081,6 +3081,14 @@
 	len   = skb->len;
 	data  = skb_data(skb);
 /*
+ * Bug trap for null data. Release the skb and bail out.
+ */
+	if(data == NULL) {
+		printk("ppp_dev_xmit: data=NULL before ppp_dev_xmit_ip.\n");
+		dev_kfree_skb (skb, FREE_WRITE);
+		return 0;
+	}
+/*
  * Look at the protocol in the skb to determine the difference between
  * an IP frame and an IPX frame.
  */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov