]> asedeno.scripts.mit.edu Git - linux.git/commit
nl80211: fix station_info pertid memory leak
authorAndy Strohman <andrew@andrewstrohman.com>
Sat, 25 May 2019 06:27:29 +0000 (23:27 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 May 2019 07:47:10 +0000 (09:47 +0200)
commitf77bf4863dc2218362f4227d56af4a5f3f08830c
treed768d8569a2e3280c1fe6334b59609928a95a650
parenta71fd9dac23613d96ba3c05619a8ef4fd6cdf9b9
nl80211: fix station_info pertid memory leak

When dumping stations, memory allocated for station_info's
pertid member will leak if the nl80211 header cannot be added to
the sk_buff due to insufficient tail room.

I noticed this leak in the kmalloc-2048 cache.

Cc: stable@vger.kernel.org
Fixes: 8689c051a201 ("cfg80211: dynamically allocate per-tid stats for station info")
Signed-off-by: Andy Strohman <andy@uplevelsystems.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c