diff options
author | Alexei Avshalom Lazar <ailizaro@codeaurora.org> | 2018-05-09 13:06:57 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-05-12 12:27:34 +0300 |
commit | 807b086053df9bdbc9bf732130e9acda1c161aa5 (patch) | |
tree | 8cc9e7a603e074ffd9b1263c1f726d6df1b3694f /drivers/net/wireless/ath/wil6210/debugfs.c | |
parent | 1c21cc5fc4df4997eddc6e0b5c5bad225c3f1ecc (diff) | |
download | blackbird-op-linux-807b086053df9bdbc9bf732130e9acda1c161aa5.tar.gz blackbird-op-linux-807b086053df9bdbc9bf732130e9acda1c161aa5.zip |
wil6210: Initialize reply struct of the WMI commands
WMI command reply saved in uninitialized struct.
In order to avoid accessing unset values from FW initialize
the reply struct.
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/debugfs.c')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/debugfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 8c90b3111f0b..d3b1069ebf7a 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -1078,6 +1078,8 @@ static int wil_bf_debugfs_show(struct seq_file *s, void *data) struct wmi_notify_req_done_event evt; } __packed reply; + memset(&reply, 0, sizeof(reply)); + for (i = 0; i < ARRAY_SIZE(wil->sta); i++) { u32 status; |