Skip to content
Commit d40de0ad authored by EN-WEI WU's avatar EN-WEI WU Committed by Johannes Berg
Browse files

wifi: mac80211_hwsim: avoid calling nlmsg_free() in IRQ or IRQ disabled



The nlmsg_free() ends up calling kfree_skb(), and kfree_skb() is not allowed to be called
from hardware interrupt context or with hardware interrupts being disabled. Replace the
mistaken usage of nlmsg_free() by dev_kfree_skb_irq(), which is safe in both cases.

Signed-off-by: default avatarEN-WEI WU <enweiwu@FreeBSD.org>
Link: https://lore.kernel.org/r/20230815095427.13589-1-enweiwu@FreeBSD.org


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 92752117
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment