From 636c95e471d41f498dc92dd5c756a16001ba8908 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 21 Oct 2008 13:47:44 +0100 Subject: [PATCH] --- yaml --- r: 116986 b: refs/heads/master c: cb4bca3540535a15705b50bdaea4fe2fddd183b3 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/char/tty_port.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);