diff --git a/module/tty0tty.c b/module/tty0tty.c index 232f21e..2dfdb8b 100644 --- a/module/tty0tty.c +++ b/module/tty0tty.c @@ -214,7 +214,7 @@ static int tty0tty_write(struct tty_struct *tty, const unsigned char *buffer, int count) { struct tty0tty_serial *tty0tty = tty->driver_data; - int retval = -EINVAL; + int retval = -ENOTCONN; struct tty_struct *ttyx = NULL; if (!tty0tty)