audio: Fix possible crash when removing device 90/51490/1
authorBharat Panda <bharat.panda@samsung.com>
Tue, 10 Nov 2015 05:37:38 +0000 (11:07 +0530)
committerBharat Panda <bharat.panda@samsung.com>
Tue, 10 Nov 2015 05:37:38 +0000 (11:07 +0530)
commit27d1dee399d94f0769048599b2e5e45474930158
tree22be188fa485c75ce12688e3913cabcb1b3c12f4
parent721862c9110eeb08d069d79bdd8707d9192d4f92
audio: Fix possible crash when removing device

Currently it is not possible to cancel avdtp_discover procedure
leading to crashe if the device is removed while avdtp_discover
is pending since its callback is still reachable.

git repo link:
http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=33b447daaa3adfc04dfbc123538360d998e2d7d7

Change-Id: I607f818bbe0fe1287b421548fb41d1047bb88210
profiles/audio/a2dp.c
profiles/audio/a2dp.h
profiles/audio/avdtp.c
profiles/audio/sink.c
profiles/audio/source.c