diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-11 09:40:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-28 02:01:44 +0300 |
commit | ece53405a1f8ddf60b78e1365addcad521b2c93f (patch) | |
tree | c5078f6e4067c27b2f68595a2dcbe2575fc655b8 /drivers/pwm/pwm-bcm2835.c | |
parent | fdfb719e93b55a50f90da2059dc450e7c0c48e8f (diff) | |
download | linux-ece53405a1f8ddf60b78e1365addcad521b2c93f.tar.xz |
tty: Reset c_line from driver's init_termios
After the ldisc is released, but before the tty is destroyed, the termios
is saved (in tty_free_termios()); this termios is restored if a new
tty is created on next open(). However, the line discipline is always
reset, which is not obvious in the current method. Instead, reset
as part of the restore.
Restore the original line discipline, which may not have been N_TTY.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pwm/pwm-bcm2835.c')
0 files changed, 0 insertions, 0 deletions