Skip to content
Commit 4d779acc authored by Chris Chiu's avatar Chris Chiu Committed by Greg Kroah-Hartman
Browse files

rtl8xxxu: prevent potential memory leak



[ Upstream commit 86279456 ]

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: default avatarChris Chiu <chiu@endlessm.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200906040424.22022-1-chiu@endlessm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 437ee0e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment