Bluetooth: hci_qca: Fix uninitialized access to hdev
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Wed, 20 May 2020 16:32:28 +0000 (09:32 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 20 May 2020 17:12:43 +0000 (19:12 +0200)
commit85e90d9391f57436b6f7f00503de370a657420ba
treecce9b01eeb3a2ea2ecd874d143ed6a4466ef4cde
parent755dfcbca83710fa967d0efa7c5bb601f871a747
Bluetooth: hci_qca: Fix uninitialized access to hdev

hdev is always allocated and not only when power control is required.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c