From 14ee49737f78bec25a4945cee472e74e4960051b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 20 Jan 2017 15:21:21 +0200 Subject: [PATCH] audio/avdtp: Fix calling abort confirmation Abort confirmation shall only be called in case an abort has been sent and the setup has to be unref asynchronously. --- profiles/audio/avdtp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 4ec9cca2a..4a21e0389 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -2442,10 +2442,9 @@ static int cancel_request(struct avdtp *session, int err) else stream = NULL; - if (stream) { - stream->abort_int = TRUE; + if (stream) lsep = stream->lsep; - } else + else lsep = NULL; switch (req->signal_id) { @@ -2515,6 +2514,8 @@ static int cancel_request(struct avdtp *session, int err) goto failed; } + stream->abort_int = TRUE; + goto done; failed: -- 2.47.3