]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: mediatek: fix up an error path to restore bdev->tx_state
authorSean Wang <sean.wang@mediatek.com>
Thu, 14 Feb 2019 23:19:35 +0000 (07:19 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 18 Feb 2019 13:06:38 +0000 (14:06 +0100)
commit77f328dbc6cf42f22c691a164958a5452142a542
tree3609f84a37e0dbd7b22bebb7afb8da7faa06ab0e
parentadf5d73056d185eff31a04aa91f5cb0a2ae22152
Bluetooth: mediatek: fix up an error path to restore bdev->tx_state

Restore bdev->tx_state with clearing bit BTMTKUART_TX_WAIT_VND_EVT
when there is an error on waiting for the corresponding event.

Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtkuart.c