Message ID | 1243855137-20149-1-git-send-email-remi.denis-courmont@nokia.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Date: Mon, 1 Jun 2009 14:18:55 +0300 > From: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> > > Network device TX is never run in IRQ context, and skb is freed outside > of the IRQ-disabling spin lock. So checking for IRQ was a waste of time > here. > > Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> > Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Applied to net-next-2.6 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/usb/gadget/f_phonet.c b/drivers/usb/gadget/f_phonet.c index c1abeb8..54451ee 100644 --- a/drivers/usb/gadget/f_phonet.c +++ b/drivers/usb/gadget/f_phonet.c @@ -255,7 +255,7 @@ out_unlock: spin_unlock_irqrestore(&port->lock, flags); out: if (unlikely(skb)) { - dev_kfree_skb_any(skb); + dev_kfree_skb(skb); dev->stats.tx_dropped++; } return 0;