Skip to content

Commit 5b17b5b

Browse files
cvinayakkartben
authored andcommitted
Bluetooth: Controller: Fix adv aux release on insufficient resources
Fix missing adv aux release on insufficient adv data buffers configured when starting multiple extended advertising sets. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 3d9f2d1 commit 5b17b5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_adv_aux.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2694,6 +2694,9 @@ struct ll_adv_aux_set *ull_adv_aux_acquire(struct lll_adv *lll)
26942694
lll_adv_data_reset(&lll_aux->data);
26952695
err = lll_adv_aux_data_init(&lll_aux->data);
26962696
if (err) {
2697+
lll->aux = NULL;
2698+
aux_release(aux);
2699+
26972700
return NULL;
26982701
}
26992702

0 commit comments

Comments
 (0)