Message ID | 20210117021054.5BTRxoFeg%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-vmallocc-fix-potential-memory-leak.patch removed from -mm tree | expand |
--- a/mm/vmalloc.c~mm-vmallocc-fix-potential-memory-leak +++ a/mm/vmalloc.c @@ -2420,8 +2420,10 @@ void *vmap(struct page **pages, unsigned return NULL; } - if (flags & VM_MAP_PUT_PAGES) + if (flags & VM_MAP_PUT_PAGES) { area->pages = pages; + area->nr_pages = count; + } return area->addr; } EXPORT_SYMBOL(vmap);