[PATCH] Bluetooth: btusb: medaitek: fix double free of skb in coredump
Kalle Valo
kvalo at kernel.org
Mon Feb 5 00:37:19 PST 2024
<sean.wang at mediatek.com> writes:
> From: Sean Wang <sean.wang at mediatek.com>
>
> 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 at linaro.org>
> Signed-off-by: Sean Wang <sean.wang at mediatek.com>
> ---
> drivers/bluetooth/btmtk.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
This should be sent to the bluetooth list.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the Linux-mediatek
mailing list