Commit e3de62f05ca3e1d4875f2e1d005a71ee6ccf4807

Authored by Geert Stappers
Committed by Geert Stappers
1 parent 5f8d18dd

Allow tty0tty_write_room() to return ENOBUFS

The very generic error code EINVAL, in function tty0tty_write,
replaced with more informative "No buffer space available"
return code ENOBUFS.

Signed-off-by: Geert Stappers <stappers@stappers.it>
Showing 1 changed file with 1 additions and 1 deletions
module/tty0tty.c
... ... @@ -261,7 +261,7 @@ exit:
261 261 static int tty0tty_write_room(struct tty_struct *tty)
262 262 {
263 263 struct tty0tty_serial *tty0tty = tty->driver_data;
264   - int room = -EINVAL;
  264 + int room = -ENOBUFS;
265 265  
266 266 if (!tty0tty)
267 267 return -ENODEV;
... ...