OSDN Git Service

audio/avdtp: Fix not aborting SetConfiguration
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 20 Jan 2017 13:35:43 +0000 (15:35 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 20 Jan 2017 13:35:43 +0000 (15:35 +0200)
If for some reason SetConfiguration is cancelled an Abort shall be
generated since it there could be a stream pending.

profiles/audio/avdtp.c

index 4a21e03..51ead68 100644 (file)
@@ -2489,7 +2489,7 @@ static int cancel_request(struct avdtp *session, int err)
                if (lsep && lsep->cfm && lsep->cfm->set_configuration)
                        lsep->cfm->set_configuration(session, lsep, stream,
                                                        &averr, lsep->user_data);
-               goto failed;
+               break;
        case AVDTP_DISCOVER:
                error("Discover: %s (%d)", strerror(err), err);
                goto failed;