[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220603183313.50aa47e1@kernel.org>
Date: Fri, 3 Jun 2022 18:33:13 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Xiaohui Zhang <ruc_zhangxiaohui@....com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
"David S . Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, hifoolno <553441439@...com>
Subject: Re: [PATCH 1/1] nfc: nfcmrvl: Fix memory leak in
nfcmrvl_play_deferred
On Sat, 4 Jun 2022 00:31:27 +0800 Xiaohui Zhang wrote:
> From: hifoolno <553441439@...com>
>
> Currently usb_submit_urb is called directly to submit deferred tx
> urbs after unanchor them.
>
> So the usb_giveback_urb_bh would failed to unref it in usb_unanchor_urb
> and cause memory leak.
>
> Put those urbs in tx_anchor to avoid the leak, and also fix the error
> handling.
>
> Signed-off-by: hifoolno <553441439@...com>
hifoolno is too close to "Hi Fool" for comfort. Is that really your
name?
Also the patch doesn't build.
Powered by blists - more mailing lists