]> git.karo-electronics.de Git - linux-beck.git/commit
rtlwifi: rtl8723ae: Fix leak in _rtl8723e_read_adapter_info()
authorChristian Engelmayer <cengelma@gmx.at>
Tue, 9 Aug 2016 19:54:12 +0000 (21:54 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 16:53:45 +0000 (19:53 +0300)
commit3eeacaa902a31bdf06bc53f23087dcb1c5f260d6
treeb2ead69625bb26278499cb3643a25f18eea04998
parenta0c7858e74793242733a09a3e34356f434bc1571
rtlwifi: rtl8723ae: Fix leak in _rtl8723e_read_adapter_info()

In case of (rtlhal->oem_id != RT_CID_DEFAULT), 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/rtl8723ae/hw.c