summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-05-03 12:06:05 +0200
committerMarcel Holtmann <marcel@holtmann.org>2021-06-26 07:12:26 +0200
commit59f90f1351282ea2dbd0c59098fd9bb2634e920e (patch)
tree60a694b5235507cb44d5e63c77bc4adeae068040 /include/net/bluetooth/hci.h
parentBluetooth: Fix the HCI to MGMT status conversion table (diff)
downloadlinux-59f90f1351282ea2dbd0c59098fd9bb2634e920e.tar.xz
linux-59f90f1351282ea2dbd0c59098fd9bb2634e920e.zip
Bluetooth: hci_qca: fix potential GPF
In qca_power_shutdown() qcadev local variable is initialized by hu->serdev.dev private data, but hu->serdev can be NULL and there is a check for it. Since, qcadev is not used before if (!hu->serdev) return; we can move its initialization after this "if" to prevent GPF. Fixes: 5559904ccc08 ("Bluetooth: hci_qca: Add QCA Rome power off support to the qca_power_shutdown()") Cc: stable@vger.kernel.org # v5.6+ Cc: Rocky Liao <rjliao@codeaurora.org> Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci.h')
0 files changed, 0 insertions, 0 deletions