TencentOS-kernel/drivers/net/wireless/realtek
Dan Carpenter 4eb13a30f5 rtw88: debug: Fix uninitialized memory in debugfs code
commit 74a8c816fa8fa7862df870660e9821abb56649fe 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: e3037485c68e ("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>
2021-03-16 16:42:07 +08:00
..
rtl8xxxu rtl8xxxu: prevent potential memory leak 2021-03-16 16:39:21 +08:00
rtl818x Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rtlwifi rtlwifi: rtl8192cu: Prevent leaking urb 2021-03-16 16:34:50 +08:00
rtw88 rtw88: debug: Fix uninitialized memory in debugfs code 2021-03-16 16:42:07 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00