Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0942170f authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

net: ns83820: use dev_kfree_skb_irq instead of kfree_skb



It is not allowed to call kfree_skb() from hardware interrupt
context or with interrupts being disabled, spin_lock_irqsave()
make sure always in irq disable context. So the kfree_skb()
should be replaced with dev_kfree_skb_irq().

This is detected by Coccinelle semantic patch.

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a24a9d7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -919,7 +919,7 @@ static void rx_irq(struct net_device *ndev)
				ndev->stats.rx_dropped++;
			}
		} else {
			kfree_skb(skb);
			dev_kfree_skb_irq(skb);
		}

		nr++;