]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: ensure ts.flags is initialized before bit-wise or'ing in values
authorColin Ian King <colin.king@canonical.com>
Sat, 21 Dec 2019 00:40:46 +0000 (00:40 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 10:45:08 +0000 (12:45 +0200)
commitf4ef39e49b11aa69d8012dc5de20b9e0e128f83f
tree0f48750f694a25379650921bd0720f49ca72f16e
parent9b9c856e3372cec84ea5b5a26be22ea2846d1acc
ath11k: ensure ts.flags is initialized before bit-wise or'ing in values

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: 8d15e0365d69 ("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>
drivers/net/wireless/ath/ath11k/dp_tx.c