Commit 49f6c90b authored by Mao Wenan's avatar Mao Wenan Committed by David S. Miller
Browse files

net: sonic: replace dev_kfree_skb in sonic_send_packet

sonic_send_packet will be processed in irq or non-irq
context, so it would better use dev_kfree_skb_any
instead of dev_kfree_skb.

Fixes: d9fb9f38

 ("*sonic/natsemi/ns83829: Move the National Semi-conductor drivers")
Signed-off-by: default avatarMao Wenan <>
Signed-off-by: default avatarDavid S. Miller <>
parent 2507e6ab
......@@ -233,7 +233,7 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev)
laddr = dma_map_single(lp->device, skb->data, length, DMA_TO_DEVICE);
if (!laddr) {
pr_err_ratelimited("%s: failed to map tx DMA buffer.\n", dev->name);
return NETDEV_TX_OK;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment