diff --git a/[refs] b/[refs] index 06ceefec79bd..e1e320626695 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7dc9b48fc5b9641d4b2a222825e5be64ebb27356 +refs/heads/master: cb4bca3540535a15705b50bdaea4fe2fddd183b3 diff --git a/trunk/drivers/char/tty_port.c b/trunk/drivers/char/tty_port.c index 553b0e9d8d17..c8f8024cb40e 100644 --- a/trunk/drivers/char/tty_port.c +++ b/trunk/drivers/char/tty_port.c @@ -90,7 +90,7 @@ void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) spin_lock_irqsave(&port->lock, flags); if (port->tty) tty_kref_put(port->tty); - port->tty = tty; + port->tty = tty_kref_get(tty); spin_unlock_irqrestore(&port->lock, flags); } EXPORT_SYMBOL(tty_port_tty_set);