]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtl8xxxu: prevent potential memory leak
authorChris Chiu <chiu@endlessm.com>
Sun, 6 Sep 2020 04:04:24 +0000 (12:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Oct 2020 09:38:31 +0000 (10:38 +0100)
commitf98cea40fa21884ba2811a0be419f386322381eb
treeb36c5757d352a9ac4b9549304dd3902fc944cdce
parenta92781c83f3e08e6444227c9f7a2937516155eb3
rtl8xxxu: prevent potential memory leak

[ Upstream commit 86279456a4d47782398d3cb8193f78f672e36cac ]

Free the skb if usb_submit_urb fails on rx_urb. And free the urb
no matter usb_submit_urb succeeds or not in rtl8xxxu_submit_int_urb.

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200906040424.22022-1-chiu@endlessm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c