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>
This commit is contained in:

committed by
Kalle Valo

parent
b571e71bcb
commit
ac0e541ab2
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user