Bluetooth: Controller: Fix Broadcast ISO context get function

Fix Broadcast ISO context get function for out-of-bound
access.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2024-02-27 12:56:37 +01:00 committed by Fabio Baltieri
commit 8a0cf76a76

View file

@ -1002,7 +1002,7 @@ static int init_reset(void)
static struct ll_adv_iso_set *adv_iso_get(uint8_t handle)
{
if (handle >= CONFIG_BT_CTLR_ADV_SET) {
if (handle >= CONFIG_BT_CTLR_ADV_ISO_SET) {
return NULL;
}