From: "Ziyang Xuan (William)" <william.xuanziyang@huawei.com>
To: Kalle Valo <kvalo@kernel.org>
Cc: <srini.raju@purelifi.com>, <davem@davemloft.net>,
<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
<linux-wireless@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] wifi: plfxlc: fix potential memory leak in __lf_x_usb_enable_rx()
Date: Sat, 19 Nov 2022 17:20:21 +0800 [thread overview]
Message-ID: <215ec3cc-88ad-3f68-6dc3-c1aed2a17c76@huawei.com> (raw)
In-Reply-To: <87v8nbphrr.fsf@kernel.org>
> Ziyang Xuan <william.xuanziyang@huawei.com> writes:
>
>> 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@huawei.com>
>> ---
>> drivers/net/wireless/purelifi/plfxlc/usb.c | 1 +
>> 1 file changed, 1 insertion(+)
>
> plfxlc patches go to wireless tree, not net. But I think I'll take this
> to wireless-next actually.
OK, thanks.
>
next prev parent reply other threads:[~2022-11-19 9:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 5:19 Ziyang Xuan
2022-11-19 6:42 ` Kalle Valo
2022-11-19 9:20 ` Ziyang Xuan (William) [this message]
2022-11-28 13:56 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=215ec3cc-88ad-3f68-6dc3-c1aed2a17c76@huawei.com \
--to=william.xuanziyang@huawei.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=srini.raju@purelifi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®