Skip to content

Commit 1f7ebb6

Browse files
swkim101gregkh
authored andcommitted
Bluetooth: HCI: Fix potential null-ptr-deref
[ Upstream commit d270600 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent a85a60e commit 1f7ebb6

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
@@ -7200,6 +7200,8 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
72007200
u16 handle = le16_to_cpu(ev->bis[i]);
72017201

72027202
bis = hci_conn_hash_lookup_handle(hdev, handle);
7203+
if (!bis)
7204+
continue;
72037205

72047206
set_bit(HCI_CONN_BIG_SYNC_FAILED, &bis->flags);
72057207
hci_connect_cfm(bis, ev->status);

0 commit comments

Comments
 (0)