From: Dan Carpenter Date: Fri, 14 Feb 2014 09:03:13 +0000 (+0300) Subject: mwifiex: memory corruption in mwifiex_tdls_add_vht_capab() X-Git-Tag: v3.15-rc1~113^2~159^2^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c42c65c1d5863bca54e45ea25ecb24a3def29f59;p=pandora-kernel.git 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: 5f6d5983394f ('mwifiex: add VHT support for TDLS') Signed-off-by: Dan Carpenter Acked-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed