From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> It is possible that stream->start_timer can be set on stream_free which should then should take care of remove it properly otherwise it can trigger which would very likely cause a crash. Thanks to Hannu Mallat <hannu.mallat@xxxxxxxxx> for reporting it. --- android/avdtp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/avdtp.c b/android/avdtp.c index 5ae3afc..3a3380a 100644 --- a/android/avdtp.c +++ b/android/avdtp.c @@ -670,6 +670,9 @@ static void stream_free(void *data) if (stream->timer) g_source_remove(stream->timer); + if (stream->start_timer > 0) + g_source_remove(stream->start_timer); + if (stream->io) close_stream(stream); -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html