提交 840af824 编写于 作者: V Vladislav P 提交者: Gustavo F. Padovan

Bluetooth: Release BTM while sleeping to avoid deadlock

Signed-off-by: NVladislav P <vladisslav@inbox.ru>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册