From 3fffe8f7b77938fcbf449a7f9a2ae9614c8e2bd4 Mon Sep 17 00:00:00 2001 From: Chris Fester Date: Thu, 11 Oct 2012 16:01:23 -0600 Subject: [PATCH] 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 --- src/gallium/auxiliary/util/u_double_list.h | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2