]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: btusb: mediatek: Fix double free of skb in coredump
authorSean Wang <sean.wang@mediatek.com>
Wed, 17 Apr 2024 23:27:38 +0000 (16:27 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 24 Apr 2024 20:26:16 +0000 (16:26 -0400)
commit18bdb386a1a30e7a3d7732a98e45e69cf6b5710d
treef2ae57ae920953eac73dd70a4586a25e9bd18653
parent6eb5fcc416f127f220b9177a5c9ae751cac1cda8
Bluetooth: btusb: mediatek: Fix double free of skb in coredump

hci_devcd_append() would free the skb on error so the caller don't
have to free it again otherwise it would cause the double free of skb.

Fixes: 0b7015132878 ("Bluetooth: btusb: mediatek: add MediaTek devcoredump support")
Reported-by : Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtk.c