projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5c743
)
mm/memblock.c:memblock_add_range(): if nr_new is 0 just return
author
nimisolo
<
[email protected]
>
Tue, 26 Jul 2016 22:24:56 +0000
(15:24 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Jul 2016 23:19:19 +0000
(16:19 -0700)
If nr_new is 0 which means there's no region would be added, so just
return to the caller.
Signed-off-by: nimisolo <
[email protected]
>
Cc: Alexander Kuleshov <
[email protected]
>
Cc: Pekka Enberg <
[email protected]
>
Cc: Tony Luck <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Tang Chen <
[email protected]
>
Cc: Wei Yang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memblock.c
patch
|
blob
|
history
diff --git
a/mm/memblock.c
b/mm/memblock.c
index ac1248933b3172d6d46ddf3ccf0745db2371adce..ca099159b45a82c2f1fcfbad28fc14221953a8ee 100644
(file)
--- a/
mm/memblock.c
+++ b/
mm/memblock.c
@@
-584,6
+584,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.