Skip to content

Commit a8b5730

Browse files
Majistornordicjm
authored andcommitted
[nrf fromtree] Bluetooth: Controller: Fix missing null pointer check
Added a check for null pointer in ull_sync_iso.c file to avoid potential crashes. Fixes: #81997 Signed-off-by: Ashirwad Paswan <[email protected]> (cherry picked from commit 21da2d0) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 9d56385 commit a8b5730

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_sync_iso.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ void ull_sync_iso_setup(struct ll_sync_iso_set *sync_iso,
586586
lll->window_size_event_us;
587587
/* Skip to first selected BIS subevent */
588588
stream = ull_sync_iso_stream_get(lll->stream_handle[0]);
589+
LL_ASSERT(stream);
590+
589591
if (lll->bis_spacing >= (lll->sub_interval * lll->nse)) {
590592
sync_iso_offset_us += (stream->bis_index - 1U) *
591593
lll->sub_interval *

0 commit comments

Comments
 (0)