]> www.infradead.org Git - linux.git/commitdiff
Bluetooth: btintel_pcie: Allocate memory for driver private data
authorKiran K <kiran.k@intel.com>
Thu, 12 Sep 2024 10:51:00 +0000 (16:21 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 12 Sep 2024 21:32:42 +0000 (17:32 -0400)
Fix driver not allocating memory for struct btintel_data which is used
to store internal data.

Fixes: 6e65a09f9275 ("Bluetooth: btintel_pcie: Add *setup* function to download firmware")
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel_pcie.c

index d255bdf777b421b37c0b76152ad009536336f6d9..fda47948c35d7cf76c2d6b1044ee5c2f2b51d207 100644 (file)
@@ -1224,7 +1224,7 @@ static int btintel_pcie_setup_hdev(struct btintel_pcie_data *data)
        int err;
        struct hci_dev *hdev;
 
-       hdev = hci_alloc_dev();
+       hdev = hci_alloc_dev_priv(sizeof(struct btintel_data));
        if (!hdev)
                return -ENOMEM;