mac80211: allocate and fill tidstats only when needed
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 May 2018 09:40:44 +0000 (11:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 May 2018 09:40:44 +0000 (11:40 +0200)
commit0fdf1493b41eb64fc7e8c8e1b8830a4bd8c4bbca
treedfa33dd2675c2cb313fd9a9d22baf6478efe9367
parent39c1134c66b4552f665da576cb625f184a44a8a3
mac80211: allocate and fill tidstats only when needed

This fixes memory leaks in the case where we just have the
station info on the stack for internal usage without sending
it to cfg80211.

Fixes: 8689c051a201 ("cfg80211: dynamically allocate per-tid stats for station info")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ethtool.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h