]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/synclink.c
tty: localise the lock
[karo-tx-linux.git] / drivers / tty / synclink.c
index bdeeb3133f621c37edd55ba756a5513ead68d3c5..991bae821232889d14a62bc628a44da2ac43a2d8 100644 (file)
@@ -3338,9 +3338,9 @@ static int block_til_ready(struct tty_struct *tty, struct file * filp,
                        printk("%s(%d):block_til_ready blocking on %s count=%d\n",
                                 __FILE__,__LINE__, tty->driver->name, port->count );
                                 
-               tty_unlock();
+               tty_unlock(tty);
                schedule();
-               tty_lock();
+               tty_lock(tty);
        }
        
        set_current_state(TASK_RUNNING);