arch/tile: don't leak kernel memory when we unload modules
We were failing to track the memory when we allocated it. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
parent
444eef1ba4
commit
5f22070412
|
@ -67,6 +67,8 @@ void *module_alloc(unsigned long size)
|
|||
area = __get_vm_area(size, VM_ALLOC, MEM_MODULE_START, MEM_MODULE_END);
|
||||
if (!area)
|
||||
goto error;
|
||||
area->nr_pages = npages;
|
||||
area->pages = pages;
|
||||
|
||||
if (map_vm_area(area, prot_rwx, &pages)) {
|
||||
vunmap(area->addr);
|
||||
|
|
Loading…
Reference in a new issue