a2dp: Fix crash on connection lost 99/271499/1
authorAyush Garg <ayush.garg@samsung.com>
Tue, 28 Dec 2021 16:04:42 +0000 (21:34 +0530)
committerDohyun Pyun <dh79.pyun@samsung.com>
Tue, 22 Feb 2022 07:02:26 +0000 (16:02 +0900)
commit647a8beec63c91e173996541f5600a0cd80ac5f7
treef90aaafb75995fdc2b373751e99874c4cffa1ca1
parent4f9a6937fc7defef1897bb239393884bf8f3b500
a2dp: Fix crash on connection lost

when the channel is removed on connection lost, the
setup->chan pointer becomes dangling which causes crash
in find_remote_sep.
So mark this pointer as NULL whenever the channel is removed.

Change-Id: I1b3fe81df18d4ea8eed00739a9db7d0e7232dda0
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
profiles/audio/a2dp.c