Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305215 > unrolled thread
| Started by | nimisolo <nimisolo@gmail.com> |
|---|---|
| First post | 2016-01-09 12:40 +0100 |
| Last post | 2016-01-09 12:40 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] mm/memblock: If nr_new is 0 just return nimisolo <nimisolo@gmail.com> - 2016-01-09 12:40 +0100
| From | nimisolo <nimisolo@gmail.com> |
|---|---|
| Date | 2016-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
Back to top | Article view | linux.kernel
csiph-web