Commit e6a9db6b148e1bf642d88b9cc7e4c7edf5efdf5d

Authored by navidsav
1 parent 8f5842c1

Bug fix for some kernel version for function: tty0tty_write_room

Showing 1 changed file with 4 additions and 0 deletions
module/tty0tty.c
... ... @@ -258,7 +258,11 @@ exit:
258 258 return retval;
259 259 }
260 260  
  261 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0)
261 262 static unsigned int tty0tty_write_room(struct tty_struct *tty)
  263 +#else
  264 +static int tty0tty_write_room(struct tty_struct *tty)
  265 +#endif
262 266 {
263 267 struct tty0tty_serial *tty0tty = tty->driver_data;
264 268 int room = -ENOBUFS;
... ...