From 49f0aba94c05d489ea96c99cbb3d2e89f9cbe019 Mon Sep 17 00:00:00 2001 From: Piotr Pryga Date: Wed, 22 Dec 2021 15:05:42 +0100 Subject: [PATCH] Bluetooth: Controller: Fix wrong variable passed to isr_done Wrong variable was passed when isr_done was registered. It lead to memory faults and exceptions. It should be a pointer to lll_adv_sync instance instead of lll_adv. The commit fixes the issue. Signed-off-by: Piotr Pryga --- subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_sync.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_sync.c index 3f21e5d68f2..5494df8fb0d 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_sync.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_adv_sync.c @@ -354,7 +354,7 @@ static void isr_tx(void *param) radio_isr_set(isr_tx, lll_sync); switch_radio_complete_and_b2b_tx(lll_sync, lll->phy_s); } else { - radio_isr_set(isr_done, lll); + radio_isr_set(isr_done, lll_sync); switch_radio_complete_and_phy_end_disable(lll_sync); }