Skip to content

Commit 0ba1896

Browse files
Yang YingliangVudentz
authored andcommitted
Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()
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(). Fixes: 81be03e ("Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 39c1eb6 commit 0ba1896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/rfcomm/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ int rfcomm_dlc_send(struct rfcomm_dlc *d, struct sk_buff *skb)
590590

591591
ret = rfcomm_dlc_send_frag(d, frag);
592592
if (ret < 0) {
593-
kfree_skb(frag);
593+
dev_kfree_skb_irq(frag);
594594
goto unlock;
595595
}
596596

0 commit comments

Comments
 (0)