bluetooth: hci_ldisc: fix deadlock condition
LDISCs shouldn't call tty->ops->write() from within ->write_wakeup(). ->write_wakeup() is called with port lock taken and IRQs disabled, tty->ops->write() will try to acquire the same port lock and we will deadlock. Acked-by: NMarcel Holtmann <marcel@holtmann.org> Reviewed-by: NPeter Hurley <peter@hurleysoftware.com> Reported-by: NHuang Shijie <b32955@freescale.com> Signed-off-by: NFelipe Balbi <balbi@ti.com> Tested-by: NAndreas Bießmann <andreas@biessmann.de> Cc: stable <stable@vger.kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录