This patch fixes crashes at Broadcast Sink cleanup. I reproduced the crashes with the following setup: [bluetooth]# endpoint.register 00001851-0000-1000-8000-00805f9b34fb 0x06 [bluetooth]# scan on [NEW] Endpoint /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/ pac_bcast0 [bluetooth]# endpoint.config /org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX/pac_bcast0 /local/endpoint/ep0 16_2_1 [NEW] Transport /org/bluez/hci12/dev_XX_XX_XX_XX_XX_XX/pac_bcast0/fd0 ... [CHG] Transport /org/bluez/hci12/dev_XX_XX_XX_XX_XX_XX/pac_bcast0/fd0 State: active [bluetooth]# scan off Iulia Tanasescu (3): shared/bap: Properly cleanup bap remote endpoints bap: Fix incorrect parsing of caps and meta in parse_base bap: Remove incorrect assignment of listen io profiles/audio/bap.c | 41 +++++++++++++++++++++++++---------------- src/shared/bap.c | 12 +++++++++++- 2 files changed, 36 insertions(+), 17 deletions(-) base-commit: a692cc44dc8735b9303f8893f784306b4d2654fe -- 2.39.2