vl/buffer: add sanity check after CALLOC_STRUCT
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 17 Aug 2013 20:17:18 +0000 (21:17 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 19 Aug 2013 16:32:08 +0000 (18:32 +0200)
commit5354d2e76a929a2bb898005ef4a19a68580bd922
tree0fd924287cde7f10ff45adbb0598be85416f3949
parenteab9bad1ac0e0ba625b750ee2fbe557beb336766
vl/buffer: add sanity check after CALLOC_STRUCT

Check if we have successfully allocated memory.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/auxiliary/vl/vl_video_buffer.c