mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-22 02:34:36 +07:00
mac80211: fix TX aggregation TID struct leak
Ben reports that kmemleak is saying TX aggregation TID structs are leaked. Given his workload, I suspect that they're leaked because stations are destroyed before their aggregation sessions get a chance to start. Fix this by simply freeing structs that are not used yet. Reported-by: Ben Greear <greearb@candelatech.com> Tested-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
940d0ac9db
commit
661eb3811d
@ -149,6 +149,7 @@ static void cleanup_single_sta(struct sta_info *sta)
|
|||||||
* directly by station destruction.
|
* directly by station destruction.
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < IEEE80211_NUM_TIDS; i++) {
|
for (i = 0; i < IEEE80211_NUM_TIDS; i++) {
|
||||||
|
kfree(sta->ampdu_mlme.tid_start_tx[i]);
|
||||||
tid_tx = rcu_dereference_raw(sta->ampdu_mlme.tid_tx[i]);
|
tid_tx = rcu_dereference_raw(sta->ampdu_mlme.tid_tx[i]);
|
||||||
if (!tid_tx)
|
if (!tid_tx)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user