summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorChris Fester <[email protected]>2012-10-11 16:01:23 -0600
committerBrian Paul <[email protected]>2012-10-15 07:49:14 -0600
commit3fffe8f7b77938fcbf449a7f9a2ae9614c8e2bd4 (patch)
tree6d38f8b7e8a1adec8a58f25487bf20bd9ede377a /src/gallium/auxiliary
parent4004620d34a580c8fdb965d9b640e97453fc8b28 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_double_list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_double_list.h b/src/gallium/auxiliary/util/u_double_list.h
index 9d1129b185d..408c26dfc7f 100644
--- a/src/gallium/auxiliary/util/u_double_list.h
+++ b/src/gallium/auxiliary/util/u_double_list.h
@@ -82,6 +82,7 @@ static INLINE void list_del(struct list_head *item)
{
item->prev->next = item->next;
item->next->prev = item->prev;
+ item->prev = item->next = NULL;
}
static INLINE void list_delinit(struct list_head *item)