From e3de62f05ca3e1d4875f2e1d005a71ee6ccf4807 Mon Sep 17 00:00:00 2001 From: Geert Stappers Date: Fri, 1 Jan 2021 22:22:19 +0100 Subject: [PATCH] Allow tty0tty_write_room() to return ENOBUFS --- module/tty0tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tty0tty.c b/module/tty0tty.c index f40d1ff..2935a70 100644 --- a/module/tty0tty.c +++ b/module/tty0tty.c @@ -261,7 +261,7 @@ exit: static int tty0tty_write_room(struct tty_struct *tty) { struct tty0tty_serial *tty0tty = tty->driver_data; - int room = -EINVAL; + int room = -ENOBUFS; if (!tty0tty) return -ENODEV; -- libgit2 0.21.4