lkml.org 
[lkml]   [2020]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ath11k: ensure ts.flags is initialized before bit-wise or'ing in values
From
Date
Colin King <colin.king@canonical.com> wrote:

> Currently the structure ts is not inititalized and ts.flags contains
> garbage values from the stack. This is being passed into function
> ath11k_dp_tx_status_parse that bit-wise or'ing in settings into the
> ts.flags field. To avoid flags (and other fields) from containing
> garbage, initialize the structure to zero before use.
>
> Addresses-Coverity: ("Uninitialized scalar variable)"
> Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

eefca584140b ath11k: ensure ts.flags is initialized before bit-wise or'ing in values

--
https://patchwork.kernel.org/patch/11306545/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

\
 
 \ /
  Last update: 2020-01-26 11:46    [W:0.046 / U:4.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site