Re: [PATCH] Bluetooth: hci_ldisc: Fix for pty driver

2019-01-24 Thread Marcel Holtmann
Hi Myungho, > tty_set_termios() should be called with slave side of pty driver. So, If > tty driver is pty master, it needs to be switched to ->link. Also, > tiocmget() and tiocmset() operations are optional so we need NULL check > for some drivers missing the operations like pty. these are two i

[PATCH] Bluetooth: hci_ldisc: Fix for pty driver

2019-01-24 Thread Myungho Jung
tty_set_termios() should be called with slave side of pty driver. So, If tty driver is pty master, it needs to be switched to ->link. Also, tiocmget() and tiocmset() operations are optional so we need NULL check for some drivers missing the operations like pty. Reported-by: syzbot+a950165cbb86bdd0