Diff between a2d3f2d5c5bd999c1e3606090cc961dbd16565b2 and d9b27da3cc93d812c5da0cc5b597cb4a92d8adb6

Changed Files

File Additions Deletions Status
audio/avdtp.c +3 -1 modified

Full Patch

diff --git a/audio/avdtp.c b/audio/avdtp.c
index 6018c37..c49dee9 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1098,8 +1098,10 @@ static void avdtp_sep_set_state(struct avdtp *session,
 		break;
 	}
 
-	for (l = stream->callbacks; l != NULL; l = g_slist_next(l)) {
+	l = stream->callbacks;
+	while (l != NULL) {
 		struct stream_callback *cb = l->data;
+		l = g_slist_next(l);
 		cb->cb(stream, old_state, state, err_ptr, cb->user_data);
 	}