Mesa (master): util: null-out the node's prev/next pointers in list_del()
Brian Paul
brianp at kemper.freedesktop.org
Mon Oct 15 14:02:59 UTC 2012
Module: Mesa
Branch: master
Commit: 3fffe8f7b77938fcbf449a7f9a2ae9614c8e2bd4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3fffe8f7b77938fcbf449a7f9a2ae9614c8e2bd4
Author: Chris Fester <camaronut at gmail.com>
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 <brianp at vmware.com>
---
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)
More information about the mesa-commit
mailing list