[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190201093639.GB3691@localhost>
Date: Fri, 1 Feb 2019 10:36:39 +0100
From: Johan Hovold <johan@...nel.org>
To: Shuah Khan <shuah@...nel.org>
Cc: marcel@...tmann.org, johan.hedberg@...il.com,
viro@...iv.linux.org.uk, gregkh@...uxfoundation.org,
linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] tty: Fix WARNING in tty_set_termios()
On Fri, Feb 01, 2019 at 10:28:43AM +0100, Johan Hovold wrote:
> On Thu, Jan 31, 2019 at 04:23:59PM -0700, Shuah Khan wrote:
> > tty_set_termios() has the following WARN_ON which can be triggered with a
> > syscall to invoke TIOCSETD __NR_ioctl.
>
> That's the only way to set the hci line discipline. And it's the
> consequent ioctl that sets the uart protocol that triggers the warning,
I meant *subsequent* ioctl, of course.
> but only if the tty is a pty master, as I mentioned before.
Johan
Powered by blists - more mailing lists