Skip to content

Commit

Permalink
mac80211: freeing the wrong variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Jul 26, 2010
1 parent 68e8f2f commit 7e98801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/rc80211_minstrel_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e98801

Please sign in to comment.