From: Kalle Valo Date: Thu, 03 Dec 2020 16:01:31 +0000 Subject: Re: [PATCH net] rtw88: debug: Fix uninitialized memory in debugfs code Message-Id: <20201203160131.4B12AC43462@smtp.codeaurora.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: Yan-Hsuan Chuang , Stanislaw Gruszka , Brian Norris , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Dan Carpenter wrote: > 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 Patch applied to wireless-drivers.git, thanks. 74a8c816fa8f rtw88: debug: Fix uninitialized memory in debugfs code -- https://patchwork.kernel.org/project/linux-wireless/patch/X8ilOfVz3pf0T5ec@mwanda/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches