]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtw88: debug: Fix uninitialized memory in debugfs code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 3 Dec 2020 08:43:37 +0000 (11:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Dec 2020 12:22:12 +0000 (13:22 +0100)
commit50b2164c66b67c32a4a8a38c7511aa76f73adbc7
tree89400ce45ea66b6cd901d82b769d9f776a2e1693
parent312d5fc71f1b49862457ec3049a1f357d53771ad
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>
drivers/net/wireless/realtek/rtw88/debug.c