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

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
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment