Commit 564828d4cb75b916b3147a595e56fb736f3746ab
Committed by
GitHub
Merge pull request #31 from stappersg/less_generic_error_code_ENOTCONN
Less generic error code for write()
Showing
1 changed file
with
1 additions
and
1 deletions
module/tty0tty.c
| @@ -214,7 +214,7 @@ static int tty0tty_write(struct tty_struct *tty, const unsigned char *buffer, | @@ -214,7 +214,7 @@ static int tty0tty_write(struct tty_struct *tty, const unsigned char *buffer, | ||
| 214 | int count) | 214 | int count) |
| 215 | { | 215 | { |
| 216 | struct tty0tty_serial *tty0tty = tty->driver_data; | 216 | struct tty0tty_serial *tty0tty = tty->driver_data; |
| 217 | - int retval = -EINVAL; | 217 | + int retval = -ENOTCONN; |
| 218 | struct tty_struct *ttyx = NULL; | 218 | struct tty_struct *ttyx = NULL; |
| 219 | 219 | ||
| 220 | if (!tty0tty) | 220 | if (!tty0tty) |