Re: [PATCH v5] bluetooth: Fix WARNING in tty_set_termios()

2019-02-12 Thread shuah
On 2/9/19 2:42 AM, Johan Hovold wrote: On Fri, Feb 08, 2019 at 04:06:09PM -0700, Shuah Khan wrote: tty_set_termios() has the following WARN_ON which can be triggered with a syscall to invoke TIOCSETD __NR_ioctl. WARN_ON(tty->driver->type == TTY_DRIVER_TYPE_PTY &&

Re: [PATCH v5] bluetooth: Fix WARNING in tty_set_termios()

2019-02-09 Thread Johan Hovold
On Fri, Feb 08, 2019 at 04:06:09PM -0700, Shuah Khan wrote: > tty_set_termios() has the following WARN_ON which can be triggered with a > syscall to invoke TIOCSETD __NR_ioctl. > > WARN_ON(tty->driver->type == TTY_DRIVER_TYPE_PTY && > tty->driver->subtype == PTY_TYPE_MASTER); >

[PATCH v5] bluetooth: Fix WARNING in tty_set_termios()

2019-02-08 Thread Shuah Khan
tty_set_termios() has the following WARN_ON which can be triggered with a syscall to invoke TIOCSETD __NR_ioctl. WARN_ON(tty->driver->type == TTY_DRIVER_TYPE_PTY && tty->driver->subtype == PTY_TYPE_MASTER); Reference: