]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix the length parameter of a memset
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Mon, 8 Aug 2016 07:38:48 +0000 (09:38 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 10:04:22 +0000 (13:04 +0300)
commitb9b7263937f0aae6ee2ac7620934badf264192a9
tree617920628a7c615640febfba0cec913e4b1c3f1e
parentc33f967836e3ac4cf0befdd240144b6db3179888
mwifiex: fix the length parameter of a memset

In 'mwifiex_get_ver_ext', we have:
   struct mwifiex_ver_ext ver_ext;

   memset(&ver_ext, 0, sizeof(struct host_cmd_ds_version_ext));

This is likely that memset'ing sizeof(struct mwifiex_ver_ext) was expected.
Remove the ambiguity by using the variable name directly instead of its
type.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c