Message ID | 1434986124-27333-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 46b59a6f8648..2c38c4fe9631 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1952,8 +1952,10 @@ void try_offline_node(int nid) * wait_table may be allocated from boot memory, * here only free if it's allocated by vmalloc. */ - if (is_vmalloc_addr(zone->wait_table)) + if (is_vmalloc_addr(zone->wait_table)) { vfree(zone->wait_table); + zone->wait_table = NULL; + } } } EXPORT_SYMBOL(try_offline_node);