Skip to content

Commit 5c7d0f2

Browse files
swkim101Vudentz
authored andcommitted
Bluetooth: HCI: Fix potential null-ptr-deref
Fix potential null-ptr-deref in hci_le_big_sync_established_evt(). Fixes: f777d88 (Bluetooth: ISO: Notify user space about failed bis connections) Signed-off-by: Sungwoo Kim <iam@sung-woo.kim> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent 93ff8ae commit 5c7d0f2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/bluetooth/hci_event.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7069,6 +7069,8 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
70697069
u16 handle = le16_to_cpu(ev->bis[i]);
70707070

70717071
bis = hci_conn_hash_lookup_handle(hdev, handle);
7072+
if (!bis)
7073+
continue;
70727074

70737075
set_bit(HCI_CONN_BIG_SYNC_FAILED, &bis->flags);
70747076
hci_connect_cfm(bis, ev->status);

0 commit comments

Comments
 (0)