]> git.karo-electronics.de Git - linux-beck.git/commit
rtlwifi: Use dev_kfree_skb_irq instead of kfree_skb
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 1 Nov 2016 14:48:40 +0000 (14:48 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Nov 2016 06:48:33 +0000 (08:48 +0200)
commite49656147359411fb7529a211e852e587e5970dd
treecf64cd1fcca84c1b452c522f0f15c50fe3394488
parent7fc1503c906f0fac62d3506a6e993e49fb996248
rtlwifi: 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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/core.c