cfg80211: fix wext-compat memory leak
authorStefan Seyfried <seife+kernel@b1-systems.com>
Sun, 30 Sep 2018 10:53:00 +0000 (12:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 1 Oct 2018 07:11:36 +0000 (09:11 +0200)
commit848e616e66d4592fe9afc40743d3504deb7632b4
treefe248e4b36418a1c2a168ff01c0738fcbcf97d52
parent43955a45dc0b4f3be7f0c3afc0e080ed59bb5280
cfg80211: fix wext-compat memory leak

cfg80211_wext_giwrate and sinfo.pertid might allocate sinfo.pertid via
rdev_get_station(), but never release it. Fix that.

Fixes: 8689c051a201 ("cfg80211: dynamically allocate per-tid stats for station info")
Signed-off-by: Stefan Seyfried <seife+kernel@b1-systems.com>
[johannes: fix error path, use cfg80211_sinfo_release_content(), add Fixes]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/wext-compat.c