r600g: In radeon_bo(), call LIST_INITHEAD early.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sat, 23 Oct 2010 17:05:26 +0000 (19:05 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Wed, 27 Oct 2010 06:44:35 +0000 (08:44 +0200)
commitc6b10cd986c53f1a99a90f32a66d5058f1d1a3eb
tree0764c9a6b7635375ab891926559593d07cada46d
parent412b9608838b872bc294569b3ee913343a7e66f6
r600g: In radeon_bo(), call LIST_INITHEAD early.

radeon_bo_destroy() will want to read the list field. Without this patch,
we'd end up evaluating the list pointers before they have been properly
set up when we destroyed the newly created bo if it cannot be mapped.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/winsys/r600/drm/radeon_bo.c