Bluetooth: controller: Fix LL_CIS_TERMINATE RX node leak

Reusing NODE_RX_TYPE_TERMINATE for CIS requires special deallocation
handling to prevent memory leak.

Signed-off-by: Morten Priess <mtpr@oticon.com>
This commit is contained in:
Morten Priess 2022-09-29 10:09:22 +02:00 committed by Carles Cufí
commit 613283548c

View file

@ -1650,6 +1650,9 @@ void ll_rx_mem_release(void **node_rx)
conn->lll.link_tx_free = link;
ll_conn_release(conn);
} else if (IS_CIS_HANDLE(rx_free->handle)) {
ll_rx_link_quota_inc();
ll_rx_release(rx_free);
}
}
break;