]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_serdev: clear HCI_UART_PROTO_READY to avoid closing proto races
authorBalakrishna Godavarthi <bgodavar@codeaurora.org>
Wed, 22 Aug 2018 12:04:11 +0000 (17:34 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Sep 2018 09:59:58 +0000 (11:59 +0200)
commit439ff615750c93a79203461c9dc3727104143174
treed12c8bd3dbcb2b1c4dd2dbeaeee061fb88de4341
parent170689050ffe7c66d72c7a3f86d7bb5a1244163e
Bluetooth: hci_serdev: clear HCI_UART_PROTO_READY to avoid closing proto races

Clearing HCI_UART_PROTO_READY will avoid usage of proto function pointers
before running the proto close function pointer. There is chance of kernel
crash, due to usage of non proto close function pointers after proto close.

Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_serdev.c