* Re: [PATCH v2] Bluetooth: btusb: Fix memory leak in btusb_mtk_wmt_recv
[not found] <20210202013913.15324-1-zjp734690220@163.com>
@ 2021-02-02 16:26 ` Marcel Holtmann
0 siblings, 0 replies; only message in thread
From: Marcel Holtmann @ 2021-02-02 16:26 UTC (permalink / raw)
To: Jupeng Zhong
Cc: Johan Hedberg, Luiz Augusto von Dentz, Markus.Elfring,
linux-bluetooth, linux-kernel, Jupeng Zhong
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@yulong.com>
> ---
> 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-02 16:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20210202013913.15324-1-zjp734690220@163.com>
2021-02-02 16:26 ` [PATCH v2] Bluetooth: btusb: Fix memory leak in btusb_mtk_wmt_recv Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).