diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-22 13:14:19 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-26 15:32:41 -0400 |
commit | 7e988014cd6dec991f095305256f57168b5610e8 (patch) | |
tree | f51c57070b9998636a0a4c5e277a1a57a7c1f07a /net/mac80211 | |
parent | 68e8f2fae03cde0ba841325e2660b55fe49bf4b9 (diff) | |
download | linux-3.10-7e988014cd6dec991f095305256f57168b5610e8.tar.gz linux-3.10-7e988014cd6dec991f095305256f57168b5610e8.tar.bz2 linux-3.10-7e988014cd6dec991f095305256f57168b5610e8.zip |
mac80211: freeing the wrong variable
The intent was to free "msp->ratelist" here. "msp->sample_table" is
always NULL at this point.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index a16694bb634..c5b465904e3 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -748,7 +748,7 @@ minstrel_ht_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) return msp; error1: - kfree(msp->sample_table); + kfree(msp->ratelist); error: kfree(msp); return NULL; |