Skip to content

Commit 017c217

Browse files
tang-chentorvalds
authored andcommitted
arch/x86/mm/numa.c: initialize numa_kernel_nodes in numa_clear_kernel_node_hotplug()
On-stack variable numa_kernel_nodes in numa_clear_kernel_node_hotplug() was not initialized. So we need to initialize it. [akpm@linux-foundation.org: use NODE_MASK_NONE, per David] Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com> Tested-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Reported-by: Dave Jones <davej@redhat.com> Reported-by: David Rientjes <rientjes@google.com> Tested-by: Dave Jones <davej@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a85d9df commit 017c217

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/mm/numa.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ static void __init numa_init_array(void)
565565
static void __init numa_clear_kernel_node_hotplug(void)
566566
{
567567
int i, nid;
568-
nodemask_t numa_kernel_nodes;
568+
nodemask_t numa_kernel_nodes = NODE_MASK_NONE;
569569
unsigned long start, end;
570570
struct memblock_type *type = &memblock.reserved;
571571

0 commit comments

Comments
 (0)