patch-1.3.10 linux/drivers/net/tunnel.c
Next file: linux/drivers/scsi/scsi_proc.c
Previous file: linux/drivers/net/slip.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Jul 12 18:24:18 1995
- Orig file:
v1.3.9/linux/drivers/net/tunnel.c
- Orig date:
Fri Jun 30 16:22:29 1995
diff -u --recursive --new-file v1.3.9/linux/drivers/net/tunnel.c linux/drivers/net/tunnel.c
@@ -244,7 +244,9 @@
#ifdef TUNNEL_DEBUG
printk("tunnel: calling ip_forward()\n");
#endif
- ip_forward(skb2, dev, 0, iph->daddr, 0);
+ if(ip_forward(skb2, dev, 0, iph->daddr, 0))
+ kfree_skb(skb2, FREE_WRITE);
+
#ifdef TUNNEL_DEBUG
printk("Packet sent through tunnel interface!\n");
@@ -255,8 +257,6 @@
#ifdef TUNNEL_DEBUG
printk("tunnel: Updated usage statistics.\n");
#endif
- /* Clean up and return okay. */
- kfree_skb(skb2, FREE_WRITE);
dev->tbusy=0;
return 0;
}
Binary files v1.3.9/linux/drivers/scsi/aic7770 and linux/drivers/scsi/aic7770 differ
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this