If the rate control algorithm uses a selection table, it
is leaked when the station is destroyed - fix that.
Signed-off-by: Felix Fietkau <[email protected]>
Reported-by: Christophe Prévotaux <[email protected]>
Fixes: 0d528d85c519 ("mac80211: improve the rate control API")
Cc: [email protected] # v3.10+
[add commit log entry, remove pointless NULL check]
Signed-off-by: Johannes Berg <[email protected]>
sta_dbg(sta->sdata, "Destroyed STA %pM\n", sta->sta.addr);
+ kfree(rcu_dereference_raw(sta->sta.rates));
kfree(sta);
}