svga: add some trivial null pointer checks
authorBrian Paul <brianp@vmware.com>
Tue, 5 Apr 2016 15:56:49 +0000 (09:56 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 7 Apr 2016 17:42:43 +0000 (11:42 -0600)
commit9f443af449515240169e69b98bdb3746f38e7f35
tree567451e27c63154d471ec2bf657033b81544b345
parent60cf2fa477c1a91c1f8daea14d14edca80f1e183
svga: add some trivial null pointer checks

These small mallocs will probably never fail, but static analysis tools
may complain about the missing checks.

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_pipe_blend.c
src/gallium/drivers/svga/svga_pipe_depthstencil.c
src/gallium/drivers/svga/svga_pipe_rasterizer.c