|
@@ -901,8 +901,7 @@ error:
|
|
/* rollback pgdat allocation and others */
|
|
/* rollback pgdat allocation and others */
|
|
if (new_pgdat)
|
|
if (new_pgdat)
|
|
rollback_node_hotadd(nid, pgdat);
|
|
rollback_node_hotadd(nid, pgdat);
|
|
- if (res)
|
|
|
|
- release_memory_resource(res);
|
|
|
|
|
|
+ release_memory_resource(res);
|
|
|
|
|
|
out:
|
|
out:
|
|
unlock_memory_hotplug();
|
|
unlock_memory_hotplug();
|