X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=drivers%2Ftty%2Fsynclink_gt.c;h=45b43f11ca3927df3c1c680076c883808f600db9;hb=2f78d8e249973f1eeb88315e6444e616c60177ae;hp=aa1debf97cc741e3f5914cb5396c8397bd37f362;hpb=a385ec4f11bdcf81af094c03e2444ee9b7fad2e5;p=cascardo%2Flinux.git diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index aa1debf97cc7..45b43f11ca39 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -3336,9 +3336,9 @@ static int block_til_ready(struct tty_struct *tty, struct file *filp, } DBGINFO(("%s block_til_ready wait\n", tty->driver->name)); - tty_unlock(); + tty_unlock(tty); schedule(); - tty_lock(); + tty_lock(tty); } set_current_state(TASK_RUNNING);