Commit f0a4034c authored by Roel Kluin's avatar Roel Kluin Committed by james toy

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>
parent 9d895ad7
...@@ -146,7 +146,7 @@ static void hvc_console_print(struct console *co, const char *b, ...@@ -146,7 +146,7 @@ static void hvc_console_print(struct console *co, const char *b,
return; return;
/* This console adapter was removed so it is not usable. */ /* This console adapter was removed so it is not usable. */
if (vtermnos[index] < 0) if (vtermnos[index] == -1)
return; return;
while (count > 0 || i > 0) { 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