[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <166964379732.4701.17323833019999253439.kvalo@kernel.org>
Date: Mon, 28 Nov 2022 13:56:39 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Ziyang Xuan <william.xuanziyang@...wei.com>
Cc: <srini.raju@...elifi.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net] wifi: plfxlc: fix potential memory leak in
__lf_x_usb_enable_rx()
Ziyang Xuan <william.xuanziyang@...wei.com> wrote:
> urbs does not be freed in exception paths in __lf_x_usb_enable_rx().
> That will trigger memory leak. To fix it, add kfree() for urbs within
> "error" label. Compile tested only.
>
> Fixes: 68d57a07bfe5 ("wireless: add plfxlc driver for pureLiFi X, XL, XC devices")
> Signed-off-by: Ziyang Xuan <william.xuanziyang@...wei.com>
Patch applied to wireless-next.git, thanks.
895b3b06efc2 wifi: plfxlc: fix potential memory leak in __lf_x_usb_enable_rx()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20221119051900.1192401-1-william.xuanziyang@huawei.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists