aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorRonald Tschalär <[email protected]>2017-10-25 22:15:19 -0700
committerMarcel Holtmann <[email protected]>2017-10-30 15:48:32 +0100
commit0338b1b393ec7910898e8f7b25b3bf31a7282e16 (patch)
treea72e920fd7572388e6a16aec289de034f9c001bb /tools/perf/scripts/python/call-graph-from-sql.py
parent459232fc0e2505d489e2dc3befc1ad01dcdccb47 (diff)
Bluetooth: hci_ldisc: Fix another race when closing the tty.
The following race condition still existed: P1 P2 cancel_work_sync() hci_uart_tx_wakeup() hci_uart_write_work() hci_uart_dequeue() clear_bit(HCI_UART_PROTO_READY) hci_unregister_dev(hdev) hci_free_dev(hdev) hu->proto->close(hu) kfree(hu) access to hdev and hu Cancelling the work after clearing the HCI_UART_PROTO_READY bit avoids this as any hci_uart_tx_wakeup() issued after the flag is cleared will detect that and not schedule further work. Signed-off-by: Ronald Tschalär <[email protected]> Reviewed-by: Lukas Wunner <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions