mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
util: null-out the node's prev/next pointers in list_del()
Note: This is a candidate for the 9.0 branch. Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
4004620d34
commit
3fffe8f7b7
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ static INLINE void list_del(struct list_head *item)
|
||||||
{
|
{
|
||||||
item->prev->next = item->next;
|
item->prev->next = item->next;
|
||||||
item->next->prev = item->prev;
|
item->next->prev = item->prev;
|
||||||
|
item->prev = item->next = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static INLINE void list_delinit(struct list_head *item)
|
static INLINE void list_delinit(struct list_head *item)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue