aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorPrateek Sood <[email protected]>2020-08-21 02:27:50 +0530
committerGreg Kroah-Hartman <[email protected]>2020-08-28 11:32:07 +0200
commit4965b8cd1bc1ffb017e5c58e622da82b55e49414 (patch)
tree2fa2de314dd49a03d2decb96a0eceaa9b2685042 /tools/perf/scripts/python/stackcollapse.py
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd (diff)
firmware_loader: fix memory leak for paged buffer
vfree() is being called on paged buffer allocated using alloc_page() and mapped using vmap(). Freeing of pages in vfree() relies on nr_pages of struct vm_struct. vmap() does not update nr_pages. It can lead to memory leaks. Fixes: ddaf29fd9bb6 ("firmware: Free temporary page table after vmapping") Signed-off-by: Prateek Sood <[email protected]> Reviewed-by: Takashi Iwai <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions