Skip to content

Commit

Permalink
Bluetooth: Release BTM while sleeping to avoid deadlock
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav P <vladisslav@inbox.ru>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Vladislav P authored and Gustavo F. Padovan committed Feb 16, 2011
1 parent 8efdd0c commit 840af82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/rfcomm/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp)
break;
}

tty_unlock();
schedule();
tty_lock();
}
set_current_state(TASK_RUNNING);
remove_wait_queue(&dev->wait, &wait);
Expand Down

0 comments on commit 840af82

Please sign in to comment.