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:
394e31d
)
mm/memblock.c: fix index adjustment error in __next_mem_range_rev()
author
zijun_hu
<
[email protected]
>
Thu, 28 Jul 2016 22:48:56 +0000
(15:48 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 28 Jul 2016 23:07:41 +0000
(16:07 -0700)
Fix region index adjustment error when parameter type_b of
__next_mem_range_rev() == NULL.
Signed-off-by: zijun_hu <
[email protected]
>
Cc: Alexander Kuleshov <
[email protected]
>
Cc: Ard Biesheuvel <
[email protected]
>
Cc: Tang Chen <
[email protected]
>
Cc: Wei Yang <
[email protected]
>
Cc: Tang Chen <
[email protected]
>
Cc: Richard Leitner <
[email protected]
>
Cc: David Gibson <
[email protected]
>
Cc: Tejun Heo <
[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 4884a162e3ad053c6ae169313647c8818f0d0165..ff5ff3b5f1ea774403b2231aa3053865a52ee31d 100644
(file)
--- a/
mm/memblock.c
+++ b/
mm/memblock.c
@@
-1027,7
+1027,7
@@
void __init_memblock __next_mem_range_rev(u64 *idx, int nid, ulong flags,
*out_end = m_end;
if (out_nid)
*out_nid = m_nid;
- idx_a
++
;
+ idx_a
--
;
*idx = (u32)idx_a | (u64)idx_b << 32;
return;
}