commit | 840af824b2bf9194ea596e0ddc7aa05066794ca1 | [log] [tgz] |
---|---|---|
author | Vladislav P <vladisslav@inbox.ru> | Mon Feb 14 15:21:50 2011 -0200 |
committer | Gustavo F. Padovan <padovan@profusion.mobi> | Wed Feb 16 15:54:11 2011 -0300 |
tree | e10fe7e455b9a4aaadf56cb3f0c0325208bc0118 | |
parent | 8efdd0cdc54f3bb5db464b3baf88f7441f54da47 [diff] |
Bluetooth: Release BTM while sleeping to avoid deadlock Signed-off-by: Vladislav P <vladisslav@inbox.ru> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index 2575c2d..d7b9af4 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c
@@ -727,7 +727,9 @@ break; } + tty_unlock(); schedule(); + tty_lock(); } set_current_state(TASK_RUNNING); remove_wait_queue(&dev->wait, &wait);