[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1452339220-3457-1-git-send-email-nimisolo@gmail.com>
Date: Sat, 9 Jan 2016 06:33:40 -0500
From: nimisolo <nimisolo@...il.com>
To: akpm@...ux-foundation.org, kuleshovmail@...il.com,
penberg@...nel.org, tony.luck@...el.com, mgorman@...e.de,
tangchen@...fujitsu.com, weiyang@...ux.vnet.ibm.com
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
nimisolo <nimisolo@...il.com>
Subject: [PATCH] mm/memblock: If nr_new is 0 just return
If nr_new is 0 which means there's no region would be added,
so just return to the caller.
Signed-off-by: nimisolo <nimisolo@...il.com>
---
mm/memblock.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mm/memblock.c b/mm/memblock.c
index d300f13..9a30077 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -588,6 +588,9 @@ repeat:
nid, flags);
}
+ if (!nr_new)
+ return 0;
+
/*
* If this was the first round, resize array and repeat for actual
* insertions; otherwise, merge and return.
--
2.5.0
Powered by blists - more mailing lists