From: Dan Carpenter Date: Thu, 22 Jul 2010 11:14:19 +0000 (+0200) Subject: mac80211: freeing the wrong variable X-Git-Tag: v2.6.36-rc1~571^2~64^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e988014cd6dec991f095305256f57168b5610e8;p=platform%2Fkernel%2Flinux-3.10.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 a16694b..c5b4659 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;