summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/wil6210/debugfs.c
diff options
context:
space:
mode:
authorAlexei Avshalom Lazar <ailizaro@codeaurora.org>2018-10-31 11:52:17 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-11-06 19:03:22 +0300
commitac0e541ab2f2951845acee784ef487be40fb4c77 (patch)
tree38389d54c73d63d8c950b9f5f2e4e873f89b7005 /drivers/net/wireless/ath/wil6210/debugfs.c
parentb571e71bcb98d6b629b486b9af027a73fc6da3c3 (diff)
downloadlinux-ac0e541ab2f2951845acee784ef487be40fb4c77.tar.xz
wil6210: add general initialization/size checks
Initialize unset variable, and verify that mid is valid. 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.c2
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 aa50813a0595..099a04b91551 100644
--- a/drivers/net/wireless/ath/wil6210/debugfs.c
+++ b/drivers/net/wireless/ath/wil6210/debugfs.c
@@ -962,6 +962,8 @@ static ssize_t wil_write_file_txmgmt(struct file *file, const char __user *buf,
int rc;
void *frame;
+ memset(&params, 0, sizeof(params));
+
if (!len)
return -EINVAL;