WSL2-Linux-Kernel/drivers/bluetooth
Matthias Kaehlcke ecf2b768bd 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: fa9ad876b8 ("Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990")
Reported-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Reported-by: Rocky Liao <rjliao@codeaurora.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Rocky Liao <rjliao@codeaurora.org>
Tested-by: Rocky Liao <rjliao@codeaurora.org>
Reviewed-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2019-04-23 21:38:06 +02:00
..
Kconfig Bluetooth: btmrvl: add support for SD8987 chipset 2019-04-23 19:01:45 +02:00
Makefile Bluetooth: mediatek: add support for MediaTek MT7663S and MT7668S SDIO devices 2019-04-23 18:09:07 +02:00
ath3k.c Bluetooth: ath3k: add more information to error message 2018-09-28 19:27:50 +02:00
bcm203x.c
bfusb.c bluetooth: bfusb: Replace GFP_ATOMIC with GFP_KERNEL in bfusb_send_frame() 2018-07-23 18:05:00 +02:00
bluecard_cs.c bluetooth: bluecard_cs: Replace GFP_ATOMIC with GFP_KERNEL in bluecard_hci_set_baud_rate() 2018-07-23 18:05:00 +02:00
bpa10x.c bluetooth: bpa10x: Replace GFP_ATOMIC with GFP_KERNEL in bpa10x_send_frame() 2018-07-23 18:05:00 +02:00
bt3c_cs.c Bluetooth: bt3c_cs: Fix obsolete function 2018-09-27 12:57:39 +02:00
btbcm.c Bluetooth: btbcm: Add entry for BCM2076B1 UART Bluetooth 2019-04-23 19:10:56 +02:00
btbcm.h
btintel.c
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h Bluetooth: btmrvl: Drop unused GPIO includes 2019-01-22 09:51:20 +01:00
btmrvl_main.c
btmrvl_sdio.c Bluetooth: btmrvl: add support for SD8987 chipset 2019-04-23 19:01:45 +02:00
btmrvl_sdio.h
btmtksdio.c Bluetooth: btmtksdio: Add runtime PM support to SDIO based Bluetooth 2019-04-23 18:36:20 +02:00
btmtkuart.c Bluetooth: mediatek: Fixed incorrect type in assignment 2019-04-23 18:09:08 +02:00
btqca.c Bluetooth: hci_qca: Add helper to set device address 2019-01-22 09:51:18 +01:00
btqca.h Bluetooth: btqca: Fix misspelling of 'baudrate' 2019-04-23 18:09:07 +02:00
btqcomsmd.c Bluetooth: btqcomsmd: use HCI_QUIRK_USE_BDADDR_PROPERTY 2019-02-26 10:08:26 +01:00
btrsi.c Bluetooth: btrsi: fix bt tx timeout issue 2018-09-27 12:53:40 +02:00
btrtl.c Bluetooth: btrtl: Restore old logic to assume firmware is already loaded 2019-01-28 13:23:59 +01:00
btrtl.h Bluetooth: btrtl: Add support for a config filename postfix 2018-08-03 13:27:46 +02:00
btsdio.c Bluetooth: btsdio: Use module_sdio_driver helper 2019-04-23 18:09:07 +02:00
btusb.c Bluetooth: btusb: request wake pin with NOAUTOEN 2019-04-09 17:38:24 -10:00
btwilink.c
dtl1_cs.c
h4_recv.h Bluetooth: remove redundant zero check on count 2019-02-18 11:46:45 +01:00
hci_ag6xx.c
hci_ath.c
hci_bcm.c Bluetooth: hci_bcm: Fix empty regulator supplies for Intel Macs 2019-04-23 19:28:20 +02:00
hci_bcsp.c
hci_h4.c Bluetooth: hci_uart: Check if socket buffer is ERR_PTR in h4_recv_buf() 2019-01-22 09:51:19 +01:00
hci_h5.c Bluetooth: hci_h5: fix spelling mistake "sliped" -> "slipped" 2019-04-23 18:09:08 +02:00
hci_intel.c Bluetooth: hci_intel: clean an indentation issue, remove extraneous spaces 2018-12-19 00:46:30 +01:00
hci_ldisc.c Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto() 2019-02-26 09:55:39 +01:00
hci_ll.c
hci_mrvl.c
hci_nokia.c
hci_qca.c Bluetooth: hci_qca: Fix crash with non-serdev devices 2019-04-23 21:38:06 +02:00
hci_serdev.c Bluetooth: hci_serdev: Remove setting of HCI_QUIRK_RESET_ON_CLOSE. 2018-12-19 00:41:59 +01:00
hci_uart.h
hci_vhci.c