From: Dan Carpenter Date: Thu, 22 Jul 2010 11:14:19 +0000 (+0200) Subject: mac80211: freeing the wrong variable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7e988014cd6dec991f095305256f57168b5610e8;p=linux-beck.git 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 Signed-off-by: John W. Linville --- 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;