patch-2.3.99-pre9 linux/net/core/skbuff.c

Next file: linux/net/ipv4/ip_gre.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -4,7 +4,7 @@
  *	Authors:	Alan Cox <iiitac@pyr.swan.ac.uk>
  *			Florian La Roche <rzsfl@rz.uni-sb.de>
  *
- *	Version:	$Id: skbuff.c,v 1.72 2000/04/13 00:55:54 davem Exp $
+ *	Version:	$Id: skbuff.c,v 1.73 2000/05/22 07:29:44 davem Exp $
  *
  *	Fixes:	
  *		Alan Cox	:	Fixed the worst of the load balancer bugs.
@@ -90,7 +90,7 @@
 {
 	printk("skput:over: %p:%d put:%d dev:%s", 
 		here, skb->len, sz, skb->dev ? skb->dev->name : "<NULL>");
-	*(int*)0 = 0;
+	BUG();
 }
 
 /**
@@ -107,7 +107,7 @@
 {
         printk("skput:under: %p:%d put:%d dev:%s",
                 here, skb->len, sz, skb->dev ? skb->dev->name : "<NULL>");
-	*(int*)0 = 0;
+	BUG();
 }
 
 static __inline__ struct sk_buff *skb_head_from_pool(void)
@@ -172,7 +172,7 @@
 		if (++count < 5) {
 			printk(KERN_ERR "alloc_skb called nonatomically "
 			       "from interrupt %p\n", NET_CALLER(size));
- 			*(int*)0 = 0;
+ 			BUG();
 		}
 		gfp_mask &= ~__GFP_WAIT;
 	}
@@ -273,7 +273,7 @@
 	if (skb->list) {
 	 	printk(KERN_WARNING "Warning: kfree_skb passed an skb still "
 		       "on a list (from %p).\n", NET_CALLER(skb));
-		*(int*)0 = 0;
+		BUG();
 	}
 
 	dst_release(skb->dst);

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