1
0
Fork 0
alistair23-linux/drivers/net/wireless/realtek
Dan Carpenter 1015eefe10 rtw88: debug: Fix uninitialized memory in debugfs code
commit 74a8c816fa upstream.

This code does not ensure that the whole buffer is initialized and none
of the callers check for errors so potentially none of the buffer is
initialized.  Add a memset to eliminate this bug.

Fixes: e3037485c6 ("rtw88: new Realtek 802.11ac driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/X8ilOfVz3pf0T5ec@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-11 13:23:32 +01:00
..
rtl8xxxu rtl8xxxu: prevent potential memory leak 2020-10-29 09:58:07 +01:00
rtl818x treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
rtlwifi rtlwifi: rtl8192cu: Prevent leaking urb 2020-09-03 11:26:45 +02:00
rtw88 rtw88: debug: Fix uninitialized memory in debugfs code 2020-12-11 13:23:32 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00