aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@kernel.org>2026-10-09 10:35:25 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-10-14 14:38:24 -0400
commit491d2212ea0f0f6a3abbd67729df0c6a3ec9c58a (patch)
tree7a0c7b428d9a4ad9df28924bb096ac071a3fb399 /scripts/Makefile.thinlto
parentBluetooth: 6lowpan: Pin module for 6lowpan_control debugfs file (diff)
Bluetooth: btmtk: fix skb double free on ISO padding failure
btmtk_isopkt_pad() uses skb_pad(), which frees the skb on failure. The error is propagated by alloc_mtk_intr_urb() and btusb_send_frame_mtk() up to hci_send_frame(), which frees the skb a second time: err = hdev->send(hdev, skb); if (err < 0) { bt_dev_err(hdev, "sending frame failed (%d)", err); kfree_skb(skb); return err; } Use __skb_put_padto(skb, MTK_ISO_THRESHOLD, false) so that the skb is left to the caller on error. This also replaces the open-coded skb_pad() + __skb_put() sequence. Fixes: ceac1cb0259d ("Bluetooth: btusb: mediatek: add ISO data transmission functions") Signed-off-by: Eric Dumazet <edumazet@kernel.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions