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:
96e7d7a
)
mm/hotplug: only free wait_table if it's allocated by vmalloc
author
Jianguo Wu
<
[email protected]
>
Fri, 22 Mar 2013 22:04:50 +0000
(15:04 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 22 Mar 2013 23:41:20 +0000
(16:41 -0700)
zone->wait_table may be allocated from bootmem, it can not be freed.
Signed-off-by: Jianguo Wu <
[email protected]
>
Reviewed-by: Tang Chen <
[email protected]
>
Cc: Tang Chen <
[email protected]
>
Cc: Jiang Liu <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memory_hotplug.c
patch
|
blob
|
history
diff --git
a/mm/memory_hotplug.c
b/mm/memory_hotplug.c
index 9597eec8239d3f2e3fc2052179ed588643be53e0..ee3765760818a6623f86e48a6d775d2d6c2a75a2 100644
(file)
--- a/
mm/memory_hotplug.c
+++ b/
mm/memory_hotplug.c
@@
-1779,7
+1779,11
@@
void try_offline_node(int nid)
for (i = 0; i < MAX_NR_ZONES; i++) {
struct zone *zone = pgdat->node_zones + i;
- if (zone->wait_table)
+ /*
+ * wait_table may be allocated from boot memory,
+ * here only free if it's allocated by vmalloc.
+ */
+ if (is_vmalloc_addr(zone->wait_table))
vfree(zone->wait_table);
}