Skip to content

Commit 2a2618c

Browse files
author
Paolo Abeni
committed
Merge tag 'for-net-2025-12-19' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
Luiz Augusto von Dentz says: ==================== bluetooth pull request for net: - MGMT: report BIS capability flags in supported settings - btusb: revert use of devm_kzalloc in btusb * tag 'for-net-2025-12-19' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth: Bluetooth: btusb: revert use of devm_kzalloc in btusb Bluetooth: MGMT: report BIS capability flags in supported settings ==================== Link: https://patch.msgid.link/20251219223118.90141-1-luiz.dentz@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2 parents b94f11a + 252714f commit 2a2618c

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

drivers/bluetooth/btusb.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,7 +4052,7 @@ static int btusb_probe(struct usb_interface *intf,
40524052
return -ENODEV;
40534053
}
40544054

4055-
data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL);
4055+
data = kzalloc(sizeof(*data), GFP_KERNEL);
40564056
if (!data)
40574057
return -ENOMEM;
40584058

@@ -4075,8 +4075,10 @@ static int btusb_probe(struct usb_interface *intf,
40754075
}
40764076
}
40774077

4078-
if (!data->intr_ep || !data->bulk_tx_ep || !data->bulk_rx_ep)
4078+
if (!data->intr_ep || !data->bulk_tx_ep || !data->bulk_rx_ep) {
4079+
kfree(data);
40794080
return -ENODEV;
4081+
}
40804082

40814083
if (id->driver_info & BTUSB_AMP) {
40824084
data->cmdreq_type = USB_TYPE_CLASS | 0x01;
@@ -4131,8 +4133,10 @@ static int btusb_probe(struct usb_interface *intf,
41314133
data->recv_acl = hci_recv_frame;
41324134

41334135
hdev = hci_alloc_dev_priv(priv_size);
4134-
if (!hdev)
4136+
if (!hdev) {
4137+
kfree(data);
41354138
return -ENOMEM;
4139+
}
41364140

41374141
hdev->bus = HCI_USB;
41384142
hci_set_drvdata(hdev, data);
@@ -4406,6 +4410,7 @@ static int btusb_probe(struct usb_interface *intf,
44064410
if (data->reset_gpio)
44074411
gpiod_put(data->reset_gpio);
44084412
hci_free_dev(hdev);
4413+
kfree(data);
44094414
return err;
44104415
}
44114416

@@ -4454,6 +4459,7 @@ static void btusb_disconnect(struct usb_interface *intf)
44544459
}
44554460

44564461
hci_free_dev(hdev);
4462+
kfree(data);
44574463
}
44584464

44594465
#ifdef CONFIG_PM

net/bluetooth/mgmt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,12 @@ static u32 get_supported_settings(struct hci_dev *hdev)
849849
if (cis_peripheral_capable(hdev))
850850
settings |= MGMT_SETTING_CIS_PERIPHERAL;
851851

852+
if (bis_capable(hdev))
853+
settings |= MGMT_SETTING_ISO_BROADCASTER;
854+
855+
if (sync_recv_capable(hdev))
856+
settings |= MGMT_SETTING_ISO_SYNC_RECEIVER;
857+
852858
if (ll_privacy_capable(hdev))
853859
settings |= MGMT_SETTING_LL_PRIVACY;
854860

0 commit comments

Comments
 (0)