In preparation for switching nodemask API to runtime nr_node_ids, update the boundary checking condition. Signed-off-by: Yury Norov --- arch/mips/sgi-ip27/ip27-nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/sgi-ip27/ip27-nmi.c b/arch/mips/sgi-ip27/ip27-nmi.c index c502982621e6..38b9a89bcca2 100644 --- a/arch/mips/sgi-ip27/ip27-nmi.c +++ b/arch/mips/sgi-ip27/ip27-nmi.c @@ -207,7 +207,7 @@ static void nmi_dump(void) for_each_online_node(node) if (NODEPDA(node)->dump_count == 0) break; - if (node == MAX_NUMNODES) + if (node >= nr_node_ids) break; if (i == 1000) { for_each_online_node(node) -- 2.53.0