Skip to content

Commit

Permalink
Bluetooth: Controller: Fix coverity issue 318626
Browse files Browse the repository at this point in the history
[Coverity CID: 318626] Unintended sign extension in
subsys/bluetooth/controller/ll_sw/ull_adv_iso.c.

Fixes zephyrproject-rtos#58984.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
  • Loading branch information
cvinayak authored and carlescufi committed Jul 3, 2023
1 parent 6622735 commit 41cfe21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/bluetooth/controller/ll_sw/ull_adv_iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,8 @@ static void mfy_iso_offset_get(void *param)
LL_ASSERT(id != TICKER_NULL);
} while (id != ticker_id);

payload_count = lll_iso->payload_count + ((lll_iso->latency_prepare +
lazy) * lll_iso->bn);
payload_count = lll_iso->payload_count +
(((uint64_t)lll_iso->latency_prepare + lazy) * lll_iso->bn);

pdu = lll_adv_sync_data_latest_peek(lll_sync);
bi = big_info_get(pdu);
Expand Down

0 comments on commit 41cfe21

Please sign in to comment.