commit | f98cea40fa21884ba2811a0be419f386322381eb | [log] [tgz] |
---|---|---|
author | Chris Chiu <chiu@endlessm.com> | Sun Sep 06 12:04:24 2020 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Oct 30 10:38:31 2020 +0100 |
tree | b36c5757d352a9ac4b9549304dd3902fc944cdce | |
parent | a92781c83f3e08e6444227c9f7a2937516155eb3 [diff] |
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>