Commit 72dc678
nl80211: fix station_info pertid memory leak
commit f77bf48 upstream.
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: 8689c05 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 1e1007a commit 72dc678
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4611 | 4611 | | |
4612 | 4612 | | |
4613 | 4613 | | |
4614 | | - | |
| 4614 | + | |
| 4615 | + | |
4615 | 4616 | | |
| 4617 | + | |
4616 | 4618 | | |
4617 | 4619 | | |
4618 | 4620 | | |
| |||
0 commit comments