mbox series

[0/1] transport: Check if transport is bcast before it's cast to bap_transport

Message ID 20231219124916.44173-1-vlad.pruteanu@nxp.com
Headers show
Series transport: Check if transport is bcast before it's cast to bap_transport | expand

Message

Vlad Pruteanu Dec. 19, 2023, 12:49 p.m. UTC
Currently, when a transport is released it is cast to bap_transport without
checking if the transport is actually a broadcast one. Then, based on this
cast it is released. Problems may occur with transports that are not
broadcast, but are still cast to bap_transport. This commit fixes this
problem.

Vlad Pruteanu (1):
  transport: Check if transport is bcast before it's cast to
    bap_transport

 profiles/audio/transport.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)