Re: [PATCH][next] ath11k: fix uninitialized variable radioup
From: Kalle Valo
Date: Wed Dec 18 2019 - 12:53:18 EST
Colin King <colin.king@xxxxxxxxxxxxx> wrote:
> The variable radioup is not uninitalized so it may contain a garbage
> value and hence the detection of a radio that is not up is buggy.
> Fix this by initializing it to zero.
>
> Addresses-Coverity: ("Uninitalized scalar variable")
> Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxxxxxx>
Patch applied to ath-next branch of ath.git, thanks.
08cc0f44f5ed ath11k: fix uninitialized variable radioup
--
https://patchwork.kernel.org/patch/11289309/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches