patch-2.3.23 linux/net/core/skbuff.c
Next file: linux/net/ipv4/tcp_ipv4.c
Previous file: linux/net/core/dst.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Mon Oct 18 11:26:37 1999
-  Orig file: 
v2.3.22/linux/net/core/skbuff.c
-  Orig date: 
Thu Aug 26 13:05:45 1999
diff -u --recursive --new-file v2.3.22/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -237,8 +237,10 @@
 	dst_release(skb->dst);
 	if(skb->destructor)
 		skb->destructor(skb);
+#ifdef CONFIG_NET		
 	if(skb->rx_dev)
 		dev_put(skb->rx_dev);
+#endif		
 	skb_headerinit(skb, NULL, 0);  /* clean state */
 	kfree_skbmem(skb);
 }
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)