diff options
author | Matthias Kaehlcke <[email protected]> | 2019-04-23 11:16:52 -0700 |
---|---|---|
committer | Marcel Holtmann <[email protected]> | 2019-04-23 21:38:06 +0200 |
commit | ecf2b768bd11e2ff09ecbe621b387d0d58e970cf (patch) | |
tree | 3d44e6e3d300580f04208d7dd4f7de8c2c327293 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5bec1fb866df8f58b04a46bcbe27481214977e4c (diff) |
Bluetooth: hci_qca: Fix crash with non-serdev devices
qca_set_baudrate() calls serdev_device_wait_until_sent() assuming that
the HCI is always associated with a serdev device. This isn't true for
ROME controllers instantiated through ldisc, where the call causes a
crash due to a NULL pointer dereferentiation. Only call the function
when we have a serdev device. The timeout for ROME devices at the end
of qca_set_baudrate() is long enough to be reasonably sure that the
command was sent.
Fixes: fa9ad876b8e0 ("Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990")
Reported-by: Balakrishna Godavarthi <[email protected]>
Reported-by: Rocky Liao <[email protected]>
Signed-off-by: Matthias Kaehlcke <[email protected]>
Reviewed-by: Rocky Liao <[email protected]>
Tested-by: Rocky Liao <[email protected]>
Reviewed-by: Balakrishna Godavarthi <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions