projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e8453e
)
ath11k: fix uninitialized return in ath11k_spectral_process_data()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 8 Sep 2020 06:22:03 +0000
(09:22 +0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 9 Sep 2020 06:49:12 +0000
(09:49 +0300)
There is a success path where "ret" isn't initialized where we never
have a ATH11K_SPECTRAL_TAG_SCAN_SEARCH and then ret isn't initialized.
Fixes:
9d11b7bff950
("ath11k: add support for spectral scan")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20200619142922.GA267142@mwanda
drivers/net/wireless/ath/ath11k/spectral.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath11k/spectral.c
b/drivers/net/wireless/ath/ath11k/spectral.c
index
6cbe6f4
..
92fd8a4
100644
(file)
--- a/
drivers/net/wireless/ath/ath11k/spectral.c
+++ b/
drivers/net/wireless/ath/ath11k/spectral.c
@@
-773,6
+773,8
@@
static int ath11k_spectral_process_data(struct ath11k *ar,
i += sizeof(*tlv) + tlv_len;
}
+ ret = 0;
+
err:
kfree(fft_sample);
unlock: