Loading drivers/tty/tty_port.c +7 −2 Original line number Diff line number Diff line Loading @@ -199,9 +199,14 @@ EXPORT_SYMBOL(tty_port_tty_set); static void tty_port_shutdown(struct tty_port *port) { mutex_lock(&port->mutex); if (port->ops->shutdown && !port->console && test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) if (port->console) goto out; if (test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) { if (port->ops->shutdown) port->ops->shutdown(port); } out: mutex_unlock(&port->mutex); } Loading Loading
drivers/tty/tty_port.c +7 −2 Original line number Diff line number Diff line Loading @@ -199,9 +199,14 @@ EXPORT_SYMBOL(tty_port_tty_set); static void tty_port_shutdown(struct tty_port *port) { mutex_lock(&port->mutex); if (port->ops->shutdown && !port->console && test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) if (port->console) goto out; if (test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) { if (port->ops->shutdown) port->ops->shutdown(port); } out: mutex_unlock(&port->mutex); } Loading