Skip to content

Commit 7ffaa20

Browse files
kirankrishnappa-intelVudentz
authored andcommitted
Bluetooth: btintel_pcie: Allocate memory for driver private data
Fix driver not allocating memory for struct btintel_data which is used to store internal data. Fixes: 6e65a09 ("Bluetooth: btintel_pcie: Add *setup* function to download firmware") Signed-off-by: Kiran K <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 7b05933 commit 7ffaa20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bluetooth/btintel_pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ static int btintel_pcie_setup_hdev(struct btintel_pcie_data *data)
12241224
int err;
12251225
struct hci_dev *hdev;
12261226

1227-
hdev = hci_alloc_dev();
1227+
hdev = hci_alloc_dev_priv(sizeof(struct btintel_data));
12281228
if (!hdev)
12291229
return -ENOMEM;
12301230

0 commit comments

Comments
 (0)