a2dp: Fix crash on connection lost 48/268648/2
authorAyush Garg <ayush.garg@samsung.com>
Tue, 28 Dec 2021 16:04:42 +0000 (21:34 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Wed, 29 Dec 2021 08:29:56 +0000 (13:59 +0530)
commitf3704f48a19a656ff85a1b19f7c1d81955d92a6c
tree53f0a10087b1cc5b6d9958db1f3c5d7278466a4f
parent3f3b54f33fbb1acf2124cc0fa8929047a2aec1fa
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>
profiles/audio/a2dp.c