]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: fix c2h memory leak
authorPo-Hao Huang <phhuang@realtek.com>
Thu, 24 Jun 2021 02:34:59 +0000 (10:34 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 24 Jun 2021 16:21:15 +0000 (19:21 +0300)
commit59635f9c1f5cebd29c622186db1374bcb336a002
treece783bcea6592aa1c7402f351cbb45e85e8bbd87
parent19d637d866538caf407cae84bfad660c243fc5af
rtw88: fix c2h memory leak

Fix erroneous code that leads to unreferenced objects. During H2C
operations, some functions returned without freeing the memory that only
the function have access to. Release these objects when they're no longer
needed to avoid potentially memory leaks.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210624023459.10294-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/coex.c
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/main.c