]> git.karo-electronics.de Git - linux-beck.git/commit
rtlwifi: rtl8192de: Fix leak in _rtl92de_read_adapter_info()
authorChristian Engelmayer <cengelma@gmx.at>
Tue, 9 Aug 2016 19:19:57 +0000 (21:19 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 16:52:25 +0000 (19:52 +0300)
commita0c7858e74793242733a09a3e34356f434bc1571
tree13097641ad848ac49ff13a3aebdf384872befe38
parent8af92af3f2d55db143417a5d401696f4b642009a
rtlwifi: rtl8192de: Fix leak in _rtl92de_read_adapter_info()

In case rtl_get_hwinfo() fails, the function directly returns and leaks the
already allocated hwinfo memory. Go through the correct exit path.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c