From d23fb32b8ef6acb29dded0e007dc8df13f7bac5e Mon Sep 17 00:00:00 2001 From: Alexandros Antonopoulos Date: Mon, 21 Jan 2013 14:44:27 +0100 Subject: [PATCH] avctp: Fix request timeout after a channel is destroyed When the control channel is destroyed if there is a pending request (chan->p) then the channel queue is deleted in avctp_channel_destroy but the timer is still alive resulting in a SIGSEGV --- profiles/audio/avctp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiles/audio/avctp.c b/profiles/audio/avctp.c index db3c34f83..7a59cb10c 100644 --- a/profiles/audio/avctp.c +++ b/profiles/audio/avctp.c @@ -390,6 +390,9 @@ static void avctp_channel_destroy(struct avctp_channel *chan) if (chan->watch) g_source_remove(chan->watch); + if (chan->p) + pending_destroy(chan->p, NULL); + if (chan->process_id > 0) g_source_remove(chan->process_id); -- 2.47.3