]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - mm/memory_hotplug.c
Merge tag 'v4.0.8' into xlnx_4.0.8-rt6
[zynq/linux.git] / mm / memory_hotplug.c
index 65842d688b7c9bb5dbfd2440fc07339fa94650f4..93caba791cde327342fc2b02069ce36da2045462 100644 (file)
@@ -1978,8 +1978,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);