Commit: 36ce04d51df88b89dc0762d80762f73d05b76748
Parent: eba94803b64d4024dbc5209415b7c2eb09c06bef
Author: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Committer: Johan Hedberg <johan.hedberg@nokia.com>
Date: 2011-03-30 19:43:07
Tree: 1a0ef76b78404c447437907ab338a36c2855074a

Fix crash when acquiring A2DP stream Disconnecting L2CAP before getting a response for AVDTP start cause a crash while we try to abort it: avdtp_sep_set_state (session=0x9c210, sep=0x9ada0, state=AVDTP_STATE_IDLE) 0x000256dc in connection_lost (session=0x9c210, err=-5) 0x00025d44 in cancel_request (session=0x9c210, err=-5) 0x00026a98 in avdtp_abort (session=0x9c210, stream=0x9bee8) 0x00020e74 in a2dp_cancel (dev=<value optimized out>, id=<value optimized out>) 0x0002d5b4 in acquire_request_free (req=0x9b1a0) 0x0002d638 in media_owner_remove (owner=0x9a4a0) 0x0002da94 in media_transport_free (data=<value optimized out>) 0x000115a0 in remove_interface (data=0xa1f88, name=<value optimized out>) 0x0002e2a0 in media_transport_remove (transport=0x8fad8) 0x0002c624 in media_endpoint_clear_configuration (endpoint=0x9b098) 0x000260c8 in avdtp_sep_set_state (session=0x9c210, sep=0x9ada0, state=AVDTP_STATE_IDLE) To fix this callbacks are called after handling the state change, so any pending request are properly removed before state is set to idle.

Diffstat

M audio/avdtp.c | 14 ++++++++- - - - - -
M audio/transport.c | 12 +- - - - - - - - - - -

2 files changed, 9 insertions(+), 17 deletions(-)

View Full Diff | Patch