Skip to content

Commit d270600

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 <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent cd17bcb commit d270600

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/bluetooth/hci_event.c

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

70397039
bis = hci_conn_hash_lookup_handle(hdev, handle);
7040+
if (!bis)
7041+
continue;
70407042

70417043
set_bit(HCI_CONN_BIG_SYNC_FAILED, &bis->flags);
70427044
hci_connect_cfm(bis, ev->status);

0 commit comments

Comments
 (0)