util: fix undefined behavior
authorDylan Noblesmith <nobled@dreamwidth.org>
Sun, 1 Apr 2012 18:21:47 +0000 (18:21 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Fri, 13 Apr 2012 14:25:07 +0000 (14:25 +0000)
commitccff74971203b533bf16b46b49a9e61753f75e6c
tree554ed5e32920065420d78d590e256efc66a727a8
parent10ec14865aa7d0110ae202011be36d6e4a7ba154
util: fix undefined behavior

container_of() can legally return anything, even invalid addresses
that cause segfaults, when 'sample' is an uninitialized pointer.

Bug exposed by clang.

NOTE: This is a candidate for the 8.0 branch.
src/gallium/auxiliary/util/u_double_list.h