summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btqca.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2019-03-11 19:38:31 +0100
committerMarcel Holtmann <marcel@holtmann.org>2019-04-23 18:09:07 +0200
commit4fdd5a4f8b4407c21897dbfba9d0ee77eb80a42c (patch)
treeca09ef8d7b5514ac0ea040f8ceae93bf0ebd6429 /drivers/bluetooth/btqca.h
parentBluetooth: mediatek: add support for MediaTek MT7663S and MT7668S SDIO devices (diff)
downloadlinux-4fdd5a4f8b4407c21897dbfba9d0ee77eb80a42c.tar.xz
linux-4fdd5a4f8b4407c21897dbfba9d0ee77eb80a42c.zip
Bluetooth: hci_qca: Add helper function to get the chip family
Many functions obtain a 'struct qca_serdev' only to read the btsoc_type field. Add a helper function that encapsulates this. This also fixes crashes observed on platforms with ROME controllers that are instantiated through ldisc and not as serdev clients. The crashes are caused by NULL pointer dereferentiations, which stem from the driver's assumption that a QCA HCI device is always associated with a serdev device. Fixes: fa9ad876b8e0 ("Bluetooth: hci_qca: Add support for Qualcomm Bluetooth chip wcn3990") Reported-by: Balakrishna Godavarthi <bgodavar@codeaurora.org> Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btqca.h')
0 files changed, 0 insertions, 0 deletions