Signed-off-by: Govindarajulu Varadarajan <govindarajulu90@xxxxxxxxx> --- drivers/net/ethernet/sgi/ioc3-eth.c | 4 +--- drivers/net/usb/usbnet.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index 6bd90f2..80dcfd9 100644 --- a/drivers/net/ethernet/sgi/ioc3-eth.c +++ b/drivers/net/ethernet/sgi/ioc3-eth.c @@ -851,13 +851,11 @@ static inline void ioc3_clean_rx_ring(struct ioc3_private *ip) static inline void ioc3_clean_tx_ring(struct ioc3_private *ip) { - struct sk_buff *skb; int i; for (i=0; i < 128; i++) { - skb = ip->tx_skbs[i]; + dev_kfree_skb_any(ip->tx_skbs[i]); ip->tx_skbs[i] = NULL; - dev_kfree_skb_any(skb); ip->txr[i].cmd = 0; } ip->tx_pi = 0; diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index b37f812..bd18155 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1377,7 +1377,7 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, drop: dev->net->stats.tx_dropped++; not_drop: - dev_kfree_skb_any (skb); + dev_kfree_skb_any(skb); if (urb) { kfree(urb->sg); usb_free_urb(urb); -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html