diff options
| author | Xiaohui Zhang <[email protected]> | 2022-06-07 08:32:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-06-08 17:18:10 +0000 |
| commit | 8a4d480702b71184fabcf379b80bf7539716752e (patch) | |
| tree | cc17333b3c902d8f6aef18faa57b74b146f814a8 /net/switchdev/switchdev.c | |
| parent | Merge branch 'split-nfc-st21nfca-refactor-evt_transaction-into-3' (diff) | |
| download | kernel-8a4d480702b71184fabcf379b80bf7539716752e.tar.gz kernel-8a4d480702b71184fabcf379b80bf7539716752e.zip | |
nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred
Similar to the handling of play_deferred in commit 19cfe912c37b
("Bluetooth: btusb: Fix memory leak in play_deferred"), we thought
a patch might be needed here as well.
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: Xiaohui Zhang <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
