mm/memblock.c: fix index adjustment error in __next_mem_range_rev()
[email protected]
maintainerPATCH 89/101 mm/memblock.c: fix index adjustment error in __next_mem_range_rev()
From: zijun_hu <[email protected]>
Subject: mm/memblock.c: fix index adjustment error in __next_mem_range_rev()
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]>
---
mm/memblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memblock.c renamed from mm/memblock.c~mm-memblockc-fix-index-adjustment-error-in-__next_mem_range_rev +1 -1
@@ -1027,7 +1027,7 @@ void __init_memblock __next_mem_range_re *out_end = m_end;if (out_nid) *out_nid = m_nid; - idx_a++; + idx_a--; *idx = (u32 )idx_a | (u64 )idx_b <<32 ;return ; }
_