Commit 8ce4858dd765a7212d016fecdb66b74b45a7451f
Committed by
GitHub
Merge pull request #30 from stappersg/less_generic_error_code_ENOBUFS
Allow tty0tty_write_room() to return ENOBUFS
Showing
1 changed file
with
1 additions
and
1 deletions
module/tty0tty.c
| @@ -261,7 +261,7 @@ exit: | @@ -261,7 +261,7 @@ exit: | ||
| 261 | static unsigned int tty0tty_write_room(struct tty_struct *tty) | 261 | static unsigned int tty0tty_write_room(struct tty_struct *tty) |
| 262 | { | 262 | { |
| 263 | struct tty0tty_serial *tty0tty = tty->driver_data; | 263 | struct tty0tty_serial *tty0tty = tty->driver_data; |
| 264 | - int room = -EINVAL; | 264 | + int room = -ENOBUFS; |
| 265 | 265 | ||
| 266 | if (!tty0tty) | 266 | if (!tty0tty) |
| 267 | return -ENODEV; | 267 | return -ENODEV; |