kernel/drivers/tty/hvc/hvsi.c
.. .. @@ -1141,7 +1141,7 @@ 1141 1141 int ret; 1142 1142 1143 1143 if (console->index < 0 || console->index >= hvsi_count) 1144 - return -1;1144 + return -EINVAL;1145 1145 hp = &hvsi_ports[console->index]; 1146 1146 1147 1147 /* give the FSP a chance to change the baud rate when we re-open */