Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e988014 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 68e8f2fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;