]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtlwifi: rtl8192cu: Prevent leaking urb
authorReto Schneider <code@reto-schneider.ch>
Mon, 22 Jun 2020 13:21:12 +0000 (15:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:19:24 +0000 (11:19 +0200)
commitab75ab9165de8fb8d037454856afb165e8d8b06d
treeb2e50b64eb6fada2afce2b005dc3cd1bfa9799e3
parentd22aec437d771dc6b57b73ef14454a1aef44fa8c
rtlwifi: rtl8192cu: Prevent leaking urb

[ Upstream commit 03128643eb5453a798db5770952c73dc64fcaf00 ]

If usb_submit_urb fails the allocated urb should be unanchored and
released.

Signed-off-by: Reto Schneider <code@reto-schneider.ch>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200622132113.14508-3-code@reto-schneider.ch
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtlwifi/usb.c