diff options
author | Miaohe Lin <[email protected]> | 2021-01-12 15:49:18 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-01-12 18:12:54 -0800 |
commit | c22ee5284cf58017fa8c6d21d8f8c68159b6faab (patch) | |
tree | e660df31aae31df12f8b2721c4468c8ed7e3c3c0 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 29970dc24faf0078beb4efab5455b4f504d2198d (diff) |
mm/vmalloc.c: fix potential memory leak
In VM_MAP_PUT_PAGES case, we should put pages and free array in vfree.
But we missed to set area->nr_pages in vmap(). So we would fail to put
pages in __vunmap() because area->nr_pages = 0.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: b944afc9d64d ("mm: add a VM_MAP_PUT_PAGES flag for vmap")
Signed-off-by: Shijie Luo <[email protected]>
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: Uladzislau Rezki (Sony) <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions