]> git.itanic.dy.fi Git - linux-stable/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>
Thu, 29 Oct 2020 08:05:45 +0000 (09:05 +0100)
commit4c082618998436ce8154089fad673300bbbad0c3
treedb2bded825ae79615333b849fc85223fcc5fa447
parentb1a1f0d6c57381f929f39ebaaafa38e569631db8
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