aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memory_hotplug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index d04ed87bfacb..302291429953 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -901,8 +901,7 @@ error:
901 /* rollback pgdat allocation and others */ 901 /* rollback pgdat allocation and others */
902 if (new_pgdat) 902 if (new_pgdat)
903 rollback_node_hotadd(nid, pgdat); 903 rollback_node_hotadd(nid, pgdat);
904 if (res) 904 release_memory_resource(res);
905 release_memory_resource(res);
906 905
907out: 906out:
908 unlock_memory_hotplug(); 907 unlock_memory_hotplug();