cfg80211: fix memory leak in nl80211_probe_mesh_link
authorFelix Fietkau <nbd@nbd.name>
Wed, 8 Jan 2020 17:06:29 +0000 (18:06 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Jan 2020 08:53:02 +0000 (09:53 +0100)
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>
Link: https://lore.kernel.org/r/20200108170630.33680-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

index da5262b2298bda73837facb23781a3dfb8f26ca3..73e1430c7ac5c8c4f75f6685c6f4c279333f7566 100644 (file)
@@ -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);
 }