Skip to contentSkip to conversation

mac80211: freeing the wrong variable

PATCH New Dan Carpenter 1 participant 1 message Jul 22, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: freeing the wrong variable

The intent was to free "msp->ratelist" here. "msp->sample_table" is always NULL at this point.

net/mac80211/rc80211_minstrel_ht.c +1 -1
index b5ace24..0ec0584 100644
@@ -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;