Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305215 > unrolled thread

[PATCH] mm/memblock: If nr_new is 0 just return

Started bynimisolo <nimisolo@gmail.com>
First post2016-01-09 12:40 +0100
Last post2016-01-09 12:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] mm/memblock: If nr_new is 0 just return nimisolo <nimisolo@gmail.com> - 2016-01-09 12:40 +0100

#1305215 — [PATCH] mm/memblock: If nr_new is 0 just return

Fromnimisolo <nimisolo@gmail.com>
Date2016-01-09 12:40 +0100
Subject[PATCH] mm/memblock: If nr_new is 0 just return
Message-ID<qP02e-4Xn-5@gated-at.bofh.it>
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@gmail.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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web