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

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)