aea1c89dcef9e2f0f4b02b562f52151fce035091
[openwrt/staging/pepe2k.git] /
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Wed, 8 Jan 2020 18:00:41 +0100
3 Subject: [PATCH] cfg80211: fix memory leak in nl80211_probe_mesh_link
4
5 The per-tid statistics need to be released after the call to rdev_get_station
6
7 Cc: stable@vger.kernel.org
8 Fixes: 5ab92e7fe49a ("cfg80211: add support to probe unexercised mesh link")
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 ---
11
12 --- a/net/wireless/nl80211.c
13 +++ b/net/wireless/nl80211.c
14 @@ -13808,6 +13808,8 @@ static int nl80211_probe_mesh_link(struc
15 if (err)
16 return err;
17
18 + cfg80211_sinfo_release_content(&sinfo);
19 +
20 return rdev_probe_mesh_link(rdev, dev, dest, buf, len);
21 }
22