Parent: 73ae3fb93d271c1a3536a7a280b911808dc5c9c4
Author: Pauli Virtanen <pav@iki.fi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-04-21 22:46:08
Tree: 784b54b0e99d62bfe7f7195f5a118b2cb0a17dfa
shared/bap: fix crash when removing PAC When PAC is removed, streams need to go through RELEASING flow, which in some cases is not immediate. Access to stream->lpac is UAF during this time, e.g. in profiles/audio/bap.c:bap_find_setup_by_stream Allow stream->lpac == NULL. This should occur only if stream is RELEASING. When releasing streams due to removed PAC, do RELEASING->IDLE as we can't cache config then.
Diffstat
| M | src/shared/bap.c | | | 52 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - |
1 files changed, 42 insertions(+), 10 deletions(-)