diff options
author | Alexei Avshalom Lazar <ailizaro@codeaurora.org> | 2018-10-31 11:52:17 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-11-06 19:03:22 +0300 |
commit | ac0e541ab2f2951845acee784ef487be40fb4c77 (patch) | |
tree | 38389d54c73d63d8c950b9f5f2e4e873f89b7005 /drivers/net/wireless/ath/wil6210/debugfs.c | |
parent | b571e71bcb98d6b629b486b9af027a73fc6da3c3 (diff) | |
download | linux-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.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 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(¶ms, 0, sizeof(params)); + if (!len) return -EINVAL; |