projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444eef1
)
arch/tile: don't leak kernel memory when we unload modules
author
Chris Metcalf
<cmetcalf@tilera.com>
Thu, 29 Mar 2012 19:44:10 +0000
(15:44 -0400)
committer
Chris Metcalf
<cmetcalf@tilera.com>
Mon, 2 Apr 2012 16:13:19 +0000
(12:13 -0400)
We were failing to track the memory when we allocated it.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/module.c
patch
|
blob
|
history
diff --git
a/arch/tile/kernel/module.c
b/arch/tile/kernel/module.c
index b90ab9925674339f1389abd511fc56d7c6881330..98d476920106084d847b54fd9bf9cc19c9e21983 100644
(file)
--- a/
arch/tile/kernel/module.c
+++ b/
arch/tile/kernel/module.c
@@
-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);