From cb377fa61d52588a8b1514a265c4e64104da55c6 Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Mon, 21 Jan 2013 19:03:30 +0530 Subject: [PATCH] a2dp: Fix invalid memory access during suspend_ind() There is a possible invalid memory access during suspend_ind(). We should terminate the variable arguments with NULL. --- profiles/audio/a2dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index 46f41a6e3..3c546d966 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -801,7 +801,7 @@ static gboolean suspend_ind(struct avdtp *session, struct avdtp_local_sep *sep, if (start_err < 0 && start_err != -EINPROGRESS) { error("avdtp_start: %s (%d)", strerror(-start_err), -start_err); - finalize_setup_errno(setup, start_err, finalize_resume); + finalize_setup_errno(setup, start_err, finalize_resume, NULL); } return TRUE; -- 2.47.3