tty: Prevent hw state corruption in exclusive mode reopen
Exclusive mode ttys (TTY_EXCLUSIVE) do not allow further reopens; fail the condition before associating the file pointer and calling the driver open() method. Prevents DTR programming when the tty is already in exclusive mode. Reported-by: NShreyas Bethur <shreyas.bethur@ni.com> Signed-off-by: NPeter Hurley <peter@hurleysoftware.com> Acked-by: NShreyas Bethur <shreyas.bethur@ni.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录