Commit: f93a73b2a54c8b742f601bd3e15b6fb8407e4f44
Parent: ba98be0356215dd3fdfb0cd40d7bf4cde4d7359a
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-10-24 17:19:05
Tree: 7a56b0d36110c78d13b2e78f5ae84a6163bdc8d2

shared/bap: Fix crash on bt_bap_stream_disable Calls to bt_bap_stream_disable with unicast stream shall result in stream_disable if when acting as a server (!stream->client) otherwise it may lead to the following trace: bluetoothd[104990]: src/shared/bap.c:bap_queue_req() req 0x555555732470 (op 0x05) queue 0x55555571e850 bluetoothd[104990]: src/gatt-database.c:send_notification_to_device() GATT server sending notification bluetoothd[104990]: src/shared/bap.c:stream_notify_state() stream 0x55555571b7f0 bluetoothd[104990]: src/shared/bap.c:stream_notify_qos() stream 0x55555571b7f0 bluetoothd[104990]: src/gatt-database.c:send_notification_to_device() GATT server sending notification bluetoothd[104990]: src/shared/bap.c:bap_process_queue() bluetoothd[104990]: src/shared/bap.c:bap_send() req 0x555555732470 len 3 Program received signal SIGSEGV, Segmentation fault. bap_send (bap=bap@entry=0x555555730c50, req=req@entry=0x555555732470) at src/shared/bap.c:1490 Fixes: https://github.com/bluez/bluez/issues/991

Diffstat

M src/shared/bap.c | 45 ++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - -

1 files changed, 24 insertions(+), 21 deletions(-)

View Full Diff | Patch