diff options
Diffstat (limited to 'net/bluetooth/rfcomm/tty.c')
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index d1820ff14aee..aa5d73b786ac 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c | |||
@@ -710,9 +710,9 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) | |||
710 | break; | 710 | break; |
711 | } | 711 | } |
712 | 712 | ||
713 | tty_unlock(); | 713 | tty_unlock(tty); |
714 | schedule(); | 714 | schedule(); |
715 | tty_lock(); | 715 | tty_lock(tty); |
716 | } | 716 | } |
717 | set_current_state(TASK_RUNNING); | 717 | set_current_state(TASK_RUNNING); |
718 | remove_wait_queue(&dev->wait, &wait); | 718 | remove_wait_queue(&dev->wait, &wait); |