[bluez/bluez] 745450: bap: Fix setting adapter address type for unicast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: 74545026520a35c48349796246b6423285e10b0a
      https://github.com/bluez/bluez/commit/74545026520a35c48349796246b6423285e10b0a
  Author: Vlad Pruteanu <vlad.pruteanu@xxxxxxx>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    M profiles/audio/bap.c

  Log Message:
  -----------
  bap: Fix setting adapter address type for unicast

This fixes the settin of the adapter address type for unciast
scenario. Currently the address type is searched in data->adapter
however, this pointer is null and leads to the crash listed at the
end of this message. Instead, the address type should be taken from
the adapter variable, which is initialised using device_get_adapter
at the beggining of the function.

==321444==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000016
(pc 0x5601d284e03e bp 0x000000000016 sp 0x7ffdb164b740 T0)
==321444==The signal is caused by a READ memory access.
==321444==Hint: address points to the zero page.
0 0x5601d284e03e in btd_adapter_get_address_type src/adapter.c:545
1 0x5601d27a3f78 in setup_connect_io profiles/audio/bap.c:1860
2 0x5601d27a3f78 in setup_create_ucast_io profiles/audio/bap.c:2053
3 0x5601d27a3f78 in setup_create_io profiles/audio/bap.c:2106
4 0x5601d27a57cd in bap_state profiles/audio/bap.c:2143
5 0x5601d29d30df in bap_stream_state_changed src/shared/bap.c:1250
6 0x5601d29d71e2 in bap_ep_set_status src/shared/bap.c:4395
7 0x5601d293d592 in queue_foreach src/shared/queue.c:207
8 0x5601d2975c84 in notify_cb src/shared/gatt-client.c:2257
9 0x5601d2964217 in handle_notify src/shared/att.c:1012
10 0x5601d2964217 in can_read_data src/shared/att.c:1096


  Commit: 150bd6e81b3578290d71197b6fde4d26e06ea6e3
      https://github.com/bluez/bluez/commit/150bd6e81b3578290d71197b6fde4d26e06ea6e3
  Author: Yun-Hao Chung <howardchung@xxxxxxxxxx>
  Date:   2024-03-25 (Mon, 25 Mar 2024)

  Changed paths:
    M src/advertising.c

  Log Message:
  -----------
  Advertising: Emit features property update

Advertising manager has some properties that relies on kernel
information. Once we received the information from kernel, we should
emit property update.


Compare: https://github.com/bluez/bluez/compare/87cabb267935...150bd6e81b35

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux