]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix memory leak on filtered powersave frames
authorFelix Fietkau <nbd@nbd.name>
Wed, 11 Nov 2020 18:33:57 +0000 (19:33 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 12 Nov 2020 10:23:58 +0000 (11:23 +0100)
commite4b222baf0e62e3addab367ee4b5a87b68a8196e
tree69b435b86c1ca2d9fc51c5da1f83dd0778a727ad
parent6cdf0d809d6ec804db5e112c80046a924f411de3
mac80211: fix memory leak on filtered powersave frames

After the status rework, ieee80211_tx_status_ext is leaking un-acknowledged
packets for stations in powersave mode.
To fix this, move the code handling those packets from __ieee80211_tx_status
into ieee80211_tx_status_ext

Reported-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
Fixes: 319c00dab5cb ("mac80211: reduce duplication in tx status functions")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20201111183359.43528-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/status.c