diff options
author | 2021-01-12 15:49:18 -0800 | |
---|---|---|
committer | 2021-01-12 18:12:54 -0800 | |
commit | c22ee5284cf58017fa8c6d21d8f8c68159b6faab (patch) | |
tree | e660df31aae31df12f8b2721c4468c8ed7e3c3c0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | arm/kasan: fix the array size of kasan_early_shadow_pte[] (diff) | |
download | wireguard-linux-c22ee5284cf58017fa8c6d21d8f8c68159b6faab.tar.xz wireguard-linux-c22ee5284cf58017fa8c6d21d8f8c68159b6faab.zip |
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/20210107123541.39206-1-linmiaohe@huawei.com
Fixes: b944afc9d64d ("mm: add a VM_MAP_PUT_PAGES flag for vmap")
Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions