intel: Don't dereference a NULL pointer of calloc fails
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 16 Apr 2013 16:31:08 +0000 (09:31 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 17 Apr 2013 21:12:46 +0000 (14:12 -0700)
commit505ac6ddc6f83ee17655d54cf46ed71ead9e578c
treec1531beb0ea4e934b02e9ea60f1b7bdf5ad4c237
parent50064164a461f838e01a875987034863b217f531
intel: Don't dereference a NULL pointer of calloc fails

The caller of NewTextureObject does the right thing if NULL is returned,
so this function should do the right thing too.

NOTE: This is a candidate for stable branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_tex.c