Skip to content

Commit bde4baf

Browse files
authored
Merge pull request #309 from dabekjakub/pipeline_comp_disconect_list
pipeline: list delete on comp disconnect
2 parents d42a951 + e735bd1 commit bde4baf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/audio/pipeline.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static void disconnect_upstream(struct pipeline *p, struct comp_dev *start,
162162

163163
/* disconnect source from buffer */
164164
spin_lock(&current->lock);
165-
list_item_del(&current->bsource_list);
165+
list_item_del_init(&current->bsource_list);
166166
spin_unlock(&current->lock);
167167
}
168168

@@ -191,7 +191,7 @@ static void disconnect_downstream(struct pipeline *p, struct comp_dev *start,
191191

192192
/* disconnect source from buffer */
193193
spin_lock(&current->lock);
194-
list_item_del(&current->bsink_list);
194+
list_item_del_init(&current->bsink_list);
195195
spin_unlock(&current->lock);
196196
}
197197

0 commit comments

Comments
 (0)