Thread (1 message) 1 message, 1 author, 2021-02-02

Re: [PATCH v2] Bluetooth: btusb: Fix memory leak in btusb_mtk_wmt_recv

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2021-02-02 16:30:35
Also in: lkml

Hi Jupeng,
In btusb_mtk_wmt_recv if skb_clone fails, the alocated skb should be
released.

Omit the labels “err_out” and “err_free_skb” in this function
implementation so that the desired exception handling code
would be directly specified in the affected if branches.

Fixes: a1c49c434e15 ("btusb: Add protocol support for MediaTek MT7668U USB devices")
Signed-off-by: Jupeng Zhong <redacted>
---
drivers/bluetooth/btusb.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
patch does not apply cleanly to bluetooth-next tree. Please rebase.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help