]> Pileus Git - ~andy/linux/blobdiff - drivers/char/tty_port.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[~andy/linux] / drivers / char / tty_port.c
index be492dd664370a787b6da7a2b294b3bf53451de6..a3bd1d0b66cfe3fbba3bf9592c0bfbab26bb88a3 100644 (file)
@@ -119,7 +119,7 @@ EXPORT_SYMBOL(tty_port_tty_set);
 static void tty_port_shutdown(struct tty_port *port)
 {
        mutex_lock(&port->mutex);
-       if (port->ops->shutdown &&
+       if (port->ops->shutdown && !port->console &&
                test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags))
                        port->ops->shutdown(port);
        mutex_unlock(&port->mutex);