cfg80211: fix memory leak in cfg80211_cqm_rssi_update
authorFelix Fietkau <nbd@nbd.name>
Wed, 8 Jan 2020 17:06:30 +0000 (18:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:21:33 +0000 (08:21 +0100)
commit8d6b96555fd839f704bffdeaeb2749cd807a1d43
tree5cc1d7afcea724da097a54fcd963d6846d2c1d57
parent5205825195a1af8d98ef2d2e3eb083f2f1bb4724
cfg80211: fix memory leak in cfg80211_cqm_rssi_update

commit df16737d438f534d0cc9948c7c5158f1986c5c87 upstream.

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>
Link: https://lore.kernel.org/r/20200108170630.33680-2-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/nl80211.c