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

Commit ecfcbee7 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

hvc_console: fix test on unsigned in hvc_console_print()



vtermnos[] is unsigned, so this test was wrong.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent db91340b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ static void hvc_console_print(struct console *co, const char *b,
		return;

	/* This console adapter was removed so it is not usable. */
	if (vtermnos[index] < 0)
	if (vtermnos[index] == -1)
		return;

	while (count > 0 || i > 0) {