projects
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tty: Fix tty_port kref screwup
[linux-2.6]
/
drivers
/
char
/
tty_port.c
diff --git
a/drivers/char/tty_port.c
b/drivers/char/tty_port.c
index
553b0e9
..
c8f8024
100644
(file)
--- 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)
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);