* [PATCH 5.5 1/2] cfg80211: fix memory leak in nl80211_probe_mesh_link
@ 2020-01-08 17:06 Felix Fietkau
2020-01-08 17:06 ` [PATCH 5.5 2/2] cfg80211: fix memory leak in cfg80211_cqm_rssi_update Felix Fietkau
0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2020-01-08 17:06 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes
The per-tid statistics need to be released after the call to rdev_get_station
Cc: stable@vger.kernel.org
Fixes: 5ab92e7fe49a ("cfg80211: add support to probe unexercised mesh link")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
net/wireless/nl80211.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index da5262b2298b..73e1430c7ac5 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -13796,6 +13796,8 @@ static int nl80211_probe_mesh_link(struct sk_buff *skb, struct genl_info *info)
if (err)
return err;
+ cfg80211_sinfo_release_content(&sinfo);
+
return rdev_probe_mesh_link(rdev, dev, dest, buf, len);
}
--
2.24.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 5.5 2/2] cfg80211: fix memory leak in cfg80211_cqm_rssi_update
2020-01-08 17:06 [PATCH 5.5 1/2] cfg80211: fix memory leak in nl80211_probe_mesh_link Felix Fietkau
@ 2020-01-08 17:06 ` Felix Fietkau
0 siblings, 0 replies; 2+ messages in thread
From: Felix Fietkau @ 2020-01-08 17:06 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes
The per-tid statistics need to be released after the call to rdev_get_station
Cc: stable@vger.kernel.org
Fixes: 8689c051a201 ("cfg80211: dynamically allocate per-tid stats for station info")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
net/wireless/nl80211.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 73e1430c7ac5..1e97ac5435b2 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -10843,6 +10843,7 @@ static int cfg80211_cqm_rssi_update(struct cfg80211_registered_device *rdev,
if (err)
return err;
+ cfg80211_sinfo_release_content(&sinfo);
if (sinfo.filled & BIT_ULL(NL80211_STA_INFO_BEACON_SIGNAL_AVG))
wdev->cqm_config->last_rssi_event_value =
(s8) sinfo.rx_beacon_signal_avg;
--
2.24.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-08 17:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-08 17:06 [PATCH 5.5 1/2] cfg80211: fix memory leak in nl80211_probe_mesh_link Felix Fietkau
2020-01-08 17:06 ` [PATCH 5.5 2/2] cfg80211: fix memory leak in cfg80211_cqm_rssi_update Felix Fietkau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox