Skip to content
Commit 41b9e2d7 authored by Wen Congyang's avatar Wen Congyang Committed by Linus Torvalds
Browse files

mm/memory_hotplug.c: release memory resources if hotadd_new_pgdat() fails



We should goto error to release memory resource if hotadd_new_pgdat()
failed.

Signed-off-by: default avatarWen Congyang <wency@cn.fujitsu.com>
Cc: Yasuaki ISIMATU <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Cc: Len Brown <lenb@kernel.org>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 213ab3f9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment