mac80211: correct size the argument to kzalloc in minstrel_ht
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Fri, 29 Jun 2012 13:26:27 +0000 (06:26 -0700)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 7 Jun 2015 00:20:33 +0000 (03:20 +0300)
commit153e12e8b73ad71ef372ffd4d18db807edea3b63
tree0971d1a370a9a8821b36c171b6b1deb91592f383
parent4cc7224393deb868170eb6c05c81574eecbda600
mac80211: correct size the argument to kzalloc in minstrel_ht

msp has type struct minstrel_ht_sta_priv not struct minstrel_ht_sta.

(This incorporates the fixup originally posted as "mac80211: fix kzalloc
memory corruption introduced in minstrel_ht". -- JWL)

Reported-by: Fengguang Wu <wfg@linux.intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_minstrel_ht.c