Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c133c761 authored by Dan Carpenter's avatar Dan Carpenter Committed by Ingo Molnar
Browse files

x86/nmi: Fix timeout test in test_nmi_ipi()



We're supposed to exit the loop with "timeout" set to zero.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarDon Zickus <dzickus@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: kernel-janitors@vger.kernel.org
Fixes: 99e8b9ca ("x86, NMI: Add NMI IPI selftest")
Link: http://lkml.kernel.org/r/20170619105304.GA23995@elgon.mountain


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 9705596d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ static void __init test_nmi_ipi(struct cpumask *mask)

	/* Don't wait longer than a second */
	timeout = USEC_PER_SEC;
	while (!cpumask_empty(mask) && timeout--)
	while (!cpumask_empty(mask) && --timeout)
	        udelay(1);

	/* What happens if we timeout, do we still unregister?? */