]> Pileus Git - ~andy/linux/blobdiff - drivers/char/tty_port.c
Merge branch 'for-linus' of git://neil.brown.name/md
[~andy/linux] / drivers / char / tty_port.c
index 35eb30402f1889c4e7778e50c96463c652976075..33d37d230f8f4335ee9d85336bcb3816c6e968f0 100644 (file)
@@ -294,7 +294,9 @@ int tty_port_block_til_ready(struct tty_port *port,
                        retval = -ERESTARTSYS;
                        break;
                }
+               tty_unlock();
                schedule();
+               tty_lock();
        }
        finish_wait(&port->open_wait, &wait);