Parent: 15fcbf2b61af0ce1bbe08c03d39c1eca44925ef7
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-02-08 23:53:21
Tree: d6044ea97d3e5765164864aefa221b3a23b3b0a6
a2dp: set session to NULL when freeing channel There is a possibility that avdtp_channel is freed when avdtp_setup is not yet freed. This could cause crashes because setup->chan will then point to an invalid address.
Diffstat
| M | profiles/audio/a2dp.c | | | 34 | ++++++++++++++++++++++++++++- - - - - - |
| M | profiles/audio/a2dp.h | | | 4 | ++- - |
| M | profiles/audio/avdtp.c | | | 6 | ++++++ |
| M | profiles/audio/sink.c | | | 5 | ++++- |
| M | profiles/audio/source.c | | | 5 | ++++- |
5 files changed, 44 insertions(+), 10 deletions(-)