From 41cfe217b2eb5c8746b729ec84f09184881d091b Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Sat, 1 Jul 2023 06:38:39 +0530 Subject: [PATCH] Bluetooth: Controller: Fix coverity issue 318626 [Coverity CID: 318626] Unintended sign extension in subsys/bluetooth/controller/ll_sw/ull_adv_iso.c. Fixes #58984. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/ull_adv_iso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv_iso.c b/subsys/bluetooth/controller/ll_sw/ull_adv_iso.c index b5f88f25cc20..982689d83001 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv_iso.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv_iso.c @@ -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);