From 770f36d324e8233756f25a7ded275d4457b04b71 Mon Sep 17 00:00:00 2001 From: Yang Yingliang Date: Tue, 22 Dec 2020 22:50:39 +0800 Subject: [PATCH] Revert "mm/memory_hotplug: refrain from adding memory into an impossible node" hulk inclusion category: bugfix bugzilla: 46857 CVE: NA --------------------------- This reverts commit 023faff74c2811ff6c03876b58935aaa7658d1d7. Reviewed-by: Xie XiuQi Signed-off-by: Yang Yingliang --- mm/memory_hotplug.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 6cb0396c87da..2de62385e336 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1058,11 +1058,6 @@ int __ref add_memory_resource(int nid, struct resource *res, bool online) if (ret) return ret; - if (!node_possible(nid)) { - WARN(1, "node %d was absent from the node_possible_map\n", nid); - return -EINVAL; - } - mem_hotplug_begin(); /* -- GitLab