Commit 840af824 authored by Vladislav P's avatar Vladislav P Committed by Gustavo F. Padovan

Bluetooth: Release BTM while sleeping to avoid deadlock

Signed-off-by: default avatarVladislav P <vladisslav@inbox.ru>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 8efdd0cd
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment