commit | 015510174bc190ad5f4107e00d272e2c192f1eba | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Thu Nov 29 18:48:10 2018 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Dec 05 15:34:21 2019 +0100 |
tree | 38f6a148ac130452a58c6d4943327ac227ba9e1a | |
parent | ad6f8fe3021820f551a500e59f5c0998a853f5a9 [diff] |
rtl818x: fix potential use after free [ Upstream commit afbb1947db94eacc5a13302eee88a9772fb78935 ] entry is released via usb_put_urb just after calling usb_submit_urb. However, entry is used if the submission fails, resulting in a use after free bug. The patch fixes this. Signed-off-by: Pan Bian <bianpan2016@163.com> ACKed-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Sasha Levin <sashal@kernel.org>