Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit ae552f6b authored by Felipe Balbi's avatar Felipe Balbi Committed by Zefan Li
Browse files

bluetooth: hci_ldisc: fix deadlock condition


commit da64c27d upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
[tim.niemeyer@corscience.de: rebased on 3.4.103]
Signed-off-by: default avatarTim Niemeyer <tim.niemeyer@corscience.de>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent 2f1eef27
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