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 21:32:41 +0200 |
commit | 7e988014cd6dec991f095305256f57168b5610e8 (patch) | |
tree | f51c57070b9998636a0a4c5e277a1a57a7c1f07a | |
parent | ath9k: Fix inconsistency between txq->stopped and the actual queue state (diff) | |
download | linux-7e988014cd6dec991f095305256f57168b5610e8.tar.xz linux-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>
-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 a16694bb634b..c5b465904e3b 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; |