Re: [Mesa-dev] [PATCH 1/4] dri_util: Use calloc to allocate __DRIcontext

2012-09-28 Thread Eric Anholt
Ian Romanick writes: > From: Ian Romanick > > The __DRIcontext contains some pointers, and some drivers check for them to be > NULL in some failure paths. Instead of sprinkling NULL assignments across the > various drivers, just zero out the whole thing. Series is: Reviewed-by: Eric Anholt

[Mesa-dev] [PATCH 1/4] dri_util: Use calloc to allocate __DRIcontext

2012-09-28 Thread Ian Romanick
From: Ian Romanick The __DRIcontext contains some pointers, and some drivers check for them to be NULL in some failure paths. Instead of sprinkling NULL assignments across the various drivers, just zero out the whole thing. NOTE: This is a candidate for the 9.0 branch. Signed-off-by: Ian Roman