]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: memory corruption in mwifiex_tdls_add_vht_capab()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Feb 2014 09:03:13 +0000 (12:03 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Feb 2014 20:21:53 +0000 (15:21 -0500)
commit0f8ec9d0efd1da6793b82ccb303dd064ad140183
tree2dc9085ebb56ac6266fe70406b73ba7fd4c97e81
parented0798887f3b128920687ac7b57c6d0c07dda16b
mwifiex: memory corruption in mwifiex_tdls_add_vht_capab()

There is a typo here because the names are confusingly similar.  The
intent was sizeof(struct ieee80211_vht_cap) (size 12) but sizeof(struct
ieee80211_ht_cap) (size 32) was used.

Anway, it's cleaner to just specify the variable instead of the type.

Fixes: ac5cd59e17fe ('mwifiex: add VHT support for TDLS')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/tdls.c