commit | 4a06822bba46026212c06076284b940c0864bae4 | [log] [tgz] |
---|---|---|
author | Navid Emamdoost <navid.emamdoost@gmail.com> | Tue Sep 24 20:20:21 2019 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jan 04 13:39:07 2020 +0100 |
tree | ebb73a43928ded4b147d3118ee343e88362216fd | |
parent | ff3a1b2e50c6417042af7bb980cbd3d3f8d5e869 [diff] |
rtlwifi: prevent memory leak in rtl_usb_probe [ Upstream commit 3f93616951138a598d930dcaec40f2bfd9ce43bb ] In rtl_usb_probe if allocation for usb_data fails the allocated hw should be released. In addition the allocated rtlpriv->usb_data should be released on error handling path. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Sasha Levin <sashal@kernel.org>