Skip to content
Snippets Groups Projects
Commit da64c27d authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman
Browse files

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: default avatarMarcel Holtmann <marcel@holtmann.org>
Reviewed-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Reported-by: default avatarHuang Shijie <b32955@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Tested-by: default avatarAndreas Bießmann <andreas@biessmann.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 879eb9c3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment