Re: [PATCH v2] Bluetooth: btusb: Fix memory leak in btusb_mtk_wmt_recv
From: Marcel Holtmann
Date: Tue Feb 02 2021 - 11:30:52 EST
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 <zhongjupeng@xxxxxxxxxx>
> ---
> 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