diff options
Diffstat (limited to 'arch/um/drivers/line.c')
-rw-r--r-- | arch/um/drivers/line.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index fac058b49282..2c898c4d6b6a 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c | |||
@@ -774,9 +774,11 @@ static irqreturn_t winch_interrupt(int irq, void *data) | |||
774 | tty = winch->tty; | 774 | tty = winch->tty; |
775 | if (tty != NULL) { | 775 | if (tty != NULL) { |
776 | line = tty->driver_data; | 776 | line = tty->driver_data; |
777 | chan_window_size(&line->chan_list, &tty->winsize.ws_row, | 777 | if (line != NULL) { |
778 | &tty->winsize.ws_col); | 778 | chan_window_size(&line->chan_list, &tty->winsize.ws_row, |
779 | kill_pgrp(tty->pgrp, SIGWINCH, 1); | 779 | &tty->winsize.ws_col); |
780 | kill_pgrp(tty->pgrp, SIGWINCH, 1); | ||
781 | } | ||
780 | } | 782 | } |
781 | out: | 783 | out: |
782 | if (winch->fd != -1) | 784 | if (winch->fd != -1) |