Module: Mesa
Branch: master
Commit: 3fffe8f7b77938fcbf449a7f9a2ae9614c8e2bd4
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fffe8f7b77938fcbf449a7f9a2ae9614c8e2bd4

Author: Chris Fester <[email protected]>
Date:   Thu Oct 11 16:01:23 2012 -0600

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]>

---

 src/gallium/auxiliary/util/u_double_list.h |    1 +
 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 9d1129b..408c26d 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)

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to