a2dp: Fix crash when endpoint respond with an error
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 May 2019 07:51:34 +0000 (10:51 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
commitd31ecb437224fbfd1304f362c57699883cbe0aea
tree728d2272d0f802f801ffbcc9978b4051314b98ab
parent43a2b3a6301b5b7feecb5ec51f4deed2904bdf81
a2dp: Fix crash when endpoint respond with an error

If endpoint respond with an error the callback will be called with size
set to -1 not 0.

Change-Id: I70304846610fce7e47fb01a630a185864f6a1ac5
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/a2dp.c