|
@@ -256,10 +256,9 @@ void tty_port_tty_hangup(struct tty_port *port, bool check_clocal)
|
|
|
{
|
|
{
|
|
|
struct tty_struct *tty = tty_port_tty_get(port);
|
|
struct tty_struct *tty = tty_port_tty_get(port);
|
|
|
|
|
|
|
|
- if (tty && (!check_clocal || !C_CLOCAL(tty))) {
|
|
|
|
|
|
|
+ if (tty && (!check_clocal || !C_CLOCAL(tty)))
|
|
|
tty_hangup(tty);
|
|
tty_hangup(tty);
|
|
|
- tty_kref_put(tty);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ tty_kref_put(tty);
|
|
|
}
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(tty_port_tty_hangup);
|
|
EXPORT_SYMBOL_GPL(tty_port_tty_hangup);
|
|
|
|
|
|