speedtch usbatm.c,1.58,1.59
Duncan Sands
duncan at infradead.org
Wed Nov 30 06:09:27 EST 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv23961
Modified Files:
usbatm.c
Log Message:
While I'm pretty confident that we only free skb's with irq's enabled, let's
play safe and use dev_kfree_skb_any rather than dev_kfree_skb.
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- usbatm.c 20 Nov 2005 13:34:07 -0000 1.58
+++ usbatm.c 30 Nov 2005 11:09:24 -0000 1.59
@@ -72,6 +72,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
+#include <linux/netdevice.h>
#include <linux/proc_fs.h>
#include <linux/sched.h>
#include <linux/signal.h>
@@ -198,7 +199,7 @@
if (vcc->pop)
vcc->pop(vcc, skb);
else
- dev_kfree_skb(skb);
+ dev_kfree_skb_any(skb);
}
@@ -388,7 +389,7 @@
if (!atm_charge(vcc, skb->truesize)) {
atm_rldbg(instance, "%s: failed atm_charge (skb->truesize: %u)!\n",
__func__, skb->truesize);
- dev_kfree_skb(skb);
+ dev_kfree_skb_any(skb);
goto out; /* atm_charge increments rx_drop */
}
More information about the Usbatm-commits
mailing list