]> git.baikalelectronics.ru Git - kernel.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)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 3 Dec 2020 16:00:45 +0000 (18:00 +0200)
commit150a3868eb4507f522c65d2813350a01b9db7b5c
tree4bb4217bf4c0ad15a41b89acc3bdac0ff3ee738e
parent93e46f9f08e9ffc25ff195dad2e9340a6efc4c6d
rtw88: debug: Fix uninitialized memory in debugfs code

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: 6e4bd67d96b4 ("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
drivers/net/wireless/realtek/rtw88/debug.c