[bluez/bluez] 36f057: audio: transport: Fix crash on A2DP suspend

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

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: 36f057d7f66c62fd01e0cf27cfe816bfd5be5d21
      https://github.com/bluez/bluez/commit/36f057d7f66c62fd01e0cf27cfe816bfd5be5d21
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M profiles/audio/transport.c

  Log Message:
  -----------
  audio: transport: Fix crash on A2DP suspend

Commit 052534ae07b8 ("transport: Update transport release flow for
bcast src") introduced a crash where it assumes transport->data always
refers to struct bap_transport which causes a crash when the transport
is in fact A2DP.

Fixes: https://github.com/bluez/bluez/issues/701


  Commit: e4764af7622825a9d7dfd4ecc2066733b03f5dbf
      https://github.com/bluez/bluez/commit/e4764af7622825a9d7dfd4ecc2066733b03f5dbf
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M profiles/audio/transport.c
    M profiles/audio/transport.h

  Log Message:
  -----------
  audio/transport: Refactor transport operations

This creates a struct to hold the profile specific operations to avoid
having to check UUID, etc, to determine how to proceed with each
operation, it also attempts to decouple volume logic from A2DP
transports since it should be possible to support it on devices
implementing LE Audio as well.


  Commit: 1c321baca7815cd7727eff89b2307d27d328fdbe
      https://github.com/bluez/bluez/commit/1c321baca7815cd7727eff89b2307d27d328fdbe
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2024-01-04 (Thu, 04 Jan 2024)

  Changed paths:
    M profiles/audio/transport.c

  Log Message:
  -----------
  audio/transport: Fix runtime error

This fixes the following error cause by assuming transport->data would
also be a struct bap_transport:

profiles/audio/transport.c:328:16: runtime error: load of value 2, which
is not a valid value for type '_Bool'


Compare: https://github.com/bluez/bluez/compare/60d60166e4bf...1c321baca781




[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