mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
68e8f2fae0
commit
7e988014cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue