Thread (2 messages) 2 messages, 2 authors, 2021-09-22

Re: [PATCH] Bluetooth: btmtkuart: fix a memleak in mtk_hci_wmt_sync

flat view

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2021-09-22 14:16:52
Also in: linux-bluetooth, linux-mediatek, lkml

Hi Dinghao,
bdev->evt_skb will get freed in the normal path and one error path
of mtk_hci_wmt_sync, while the other error paths do not free it,
which may cause a memleak. This bug is suggested by a static analysis
tool, please advise.

Fixes: e0b67035a90b ("Bluetooth: mediatek: update the common setup between MT7622 and other devices")
Signed-off-by: Dinghao Liu <redacted>
---
drivers/bluetooth/btmtkuart.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
patch has been applied to bluetooth-next tree.

Regards

Marcel


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help