diff options
author | Alan Cox <alan@redhat.com> | 2008-10-21 08:47:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-23 12:20:53 -0400 |
commit | cb4bca3540535a15705b50bdaea4fe2fddd183b3 (patch) | |
tree | 268f296e4a455e6271fafdf0889ecfb9025d054b /drivers/char | |
parent | 7dc9b48fc5b9641d4b2a222825e5be64ebb27356 (diff) |
tty: Fix tty_port kref screwup
Pass the brown paper bags please. I changed the semantics of this so the
function was supposed to do the extra kref itself then forgot to do the
change.. duh....
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tty_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tty_port.c b/drivers/char/tty_port.c index 553b0e9d8d17..c8f8024cb40e 100644 --- a/drivers/char/tty_port.c +++ b/drivers/char/tty_port.c | |||
@@ -90,7 +90,7 @@ void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) | |||
90 | spin_lock_irqsave(&port->lock, flags); | 90 | spin_lock_irqsave(&port->lock, flags); |
91 | if (port->tty) | 91 | if (port->tty) |
92 | tty_kref_put(port->tty); | 92 | tty_kref_put(port->tty); |
93 | port->tty = tty; | 93 | port->tty = tty_kref_get(tty); |
94 | spin_unlock_irqrestore(&port->lock, flags); | 94 | spin_unlock_irqrestore(&port->lock, flags); |
95 | } | 95 | } |
96 | EXPORT_SYMBOL(tty_port_tty_set); | 96 | EXPORT_SYMBOL(tty_port_tty_set); |