Skip to content

Commit 8f38006

Browse files
Yang YingliangSasha Levin
authored andcommitted
wifi: libertas_tf: don't call kfree_skb() under spin_lock_irqsave()
[ Upstream commit 9388ce9 ] It is not allowed to call kfree_skb() from hardware interrupt context or with interrupts being disabled. So replace kfree_skb() with dev_kfree_skb_irq() under spin_lock_irqsave(). Compile tested only. Fixes: fc75122 ("libertas_tf: use irqsave() in USB's complete callback") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20221207150008.111743-2-yangyingliang@huawei.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 85004a4 commit 8f38006

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/marvell/libertas_tf

1 file changed

+1
-1
lines changed

drivers/net/wireless/marvell/libertas_tf/if_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static inline void process_cmdrequest(int recvlength, uint8_t *recvbuff,
613613
spin_lock_irqsave(&priv->driver_lock, flags);
614614
memcpy(priv->cmd_resp_buff, recvbuff + MESSAGE_HEADER_LEN,
615615
recvlength - MESSAGE_HEADER_LEN);
616-
kfree_skb(skb);
616+
dev_kfree_skb_irq(skb);
617617
lbtf_cmd_response_rx(priv);
618618
spin_unlock_irqrestore(&priv->driver_lock, flags);
619619
}

0 commit comments

Comments
 (0)