diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-04 11:17:08 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-04 11:17:08 -0400 |
| commit | 67417f9c262e2cd4b706eba3e1fd879d0bebc6d8 (patch) | |
| tree | 5ab867187357c4c0e23e409f42f0e0dff63d6fa8 /drivers/tty | |
| parent | 98f2082c3ac4042189723c120553310700b583bb (diff) | |
| parent | a99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff) | |
Merge 4.7-rc6 into tty-next
We want the tty/serial fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
| -rw-r--r-- | drivers/tty/pty.c | 7 | ||||
| -rw-r--r-- | drivers/tty/vt/vt.c | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c index f856c4544eea..51e0d32883ba 100644 --- a/drivers/tty/pty.c +++ b/drivers/tty/pty.c | |||
| @@ -667,8 +667,11 @@ static void pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty) | |||
| 667 | fsi = tty->driver_data; | 667 | fsi = tty->driver_data; |
| 668 | else | 668 | else |
| 669 | fsi = tty->link->driver_data; | 669 | fsi = tty->link->driver_data; |
| 670 | devpts_kill_index(fsi, tty->index); | 670 | |
| 671 | devpts_release(fsi); | 671 | if (fsi) { |
| 672 | devpts_kill_index(fsi, tty->index); | ||
| 673 | devpts_release(fsi); | ||
| 674 | } | ||
| 672 | } | 675 | } |
| 673 | 676 | ||
| 674 | static const struct tty_operations ptm_unix98_ops = { | 677 | static const struct tty_operations ptm_unix98_ops = { |
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 213ce24060b5..2705ca960e92 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c | |||
| @@ -744,6 +744,7 @@ static void visual_init(struct vc_data *vc, int num, int init) | |||
| 744 | vc->vc_complement_mask = 0; | 744 | vc->vc_complement_mask = 0; |
| 745 | vc->vc_can_do_color = 0; | 745 | vc->vc_can_do_color = 0; |
| 746 | vc->vc_panic_force_write = false; | 746 | vc->vc_panic_force_write = false; |
| 747 | vc->vc_cur_blink_ms = DEFAULT_CURSOR_BLINK_MS; | ||
| 747 | vc->vc_sw->con_init(vc, init); | 748 | vc->vc_sw->con_init(vc, init); |
| 748 | if (!vc->vc_complement_mask) | 749 | if (!vc->vc_complement_mask) |
| 749 | vc->vc_complement_mask = vc->vc_can_do_color ? 0x7700 : 0x0800; | 750 | vc->vc_complement_mask = vc->vc_can_do_color ? 0x7700 : 0x0800; |
