Skip to content

Commit 081bc3a

Browse files
authored
Merge pull request #300 from xiulipan/listfix
list: refine list_item_del to avoid make list corruption
2 parents 663cdb7 + 886e2ae commit 081bc3a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/include/sof/list.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ static inline void list_item_del(struct list_item *item)
7979
{
8080
item->next->prev = item->prev;
8181
item->prev->next = item->next;
82+
list_init(item);
8283
}
8384

8485
/* delete item from the list list iteam will be reinitialised

0 commit comments

Comments
 (0)