1
0
Fork 0

hvc_console: fix test on unsigned in hvc_console_print()

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

Signed-off-by: Roel 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
hifive-unleashed-5.1
Roel Kluin 2009-12-09 12:34:16 -08:00 committed by Greg Kroah-Hartman
parent db91340b2e
commit ecfcbee729
1 changed files with 1 additions and 1 deletions

View File

@ -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) {