From d7f9e068bab08c8dbb7ddbc4129fd26188555fd7 Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Fri, 1 Jan 2021 22:51:16 +0100 Subject: [PATCH] Less generic error code for write() --- module/tty0tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tty0tty.c b/module/tty0tty.c index f40d1ff..f79132e 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) -- libgit2 0.21.4