Skip to content

Commit 2b4545f

Browse files
kirankrishnappa-intelgregkh
authored andcommitted
Bluetooth: btintel_pcie: Allocate memory for driver private data
commit 7ffaa20 upstream. 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 <kiran.k@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Cc: Thomas Leroy <thomas.leroy@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d31c499 commit 2b4545f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/bluetooth/btintel_pcie.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ static int btintel_pcie_setup_hdev(struct btintel_pcie_data *data)
12081208
int err;
12091209
struct hci_dev *hdev;
12101210

1211-
hdev = hci_alloc_dev();
1211+
hdev = hci_alloc_dev_priv(sizeof(struct btintel_data));
12121212
if (!hdev)
12131213
return -ENOMEM;
12141214

0 commit comments

Comments
 (0)