]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 18:59:58 +0000 (14:59 -0400)
commit472dd35ccbd999a6cb2994c318ca16edf65c4359
treec961b130ee7a609eede7fcc138e0523287f2883e
parentc9015b24b262bc7ea56cfd5d78983a73fb5ebd7d
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