um: Use tty_port in SIGWINCH handler

The tty below tty_port might get destroyed by the tty layer
while we hold a reference to it.
So we have to carry tty_port around...

Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Richard Weinberger
2013-03-11 10:05:45 +01:00
szülő cc4f02486c
commit 2116bda6ad
5 fájl változott, egészen pontosan 22 új sor hozzáadva és 18 régi sor törölve

Fájl megtekintése

@@ -122,10 +122,10 @@ static int open_chan(struct list_head *chans)
return err;
}
void chan_enable_winch(struct chan *chan, struct tty_struct *tty)
void chan_enable_winch(struct chan *chan, struct tty_port *port)
{
if (chan && chan->primary && chan->ops->winch)
register_winch(chan->fd, tty);
register_winch(chan->fd, port);
}
static void line_timer_cb(struct work_struct *work)