Messages in this thread | | | Date | Fri, 3 Jun 2022 18:33:13 -0700 | From | Jakub Kicinski <> | 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@qq.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@qq.com>
hifoolno is too close to "Hi Fool" for comfort. Is that really your name?
Also the patch doesn't build.
| |