st/nine: Return NULL pointer in lock error cases
authorPatrick Rudolph <siro@das-labor.org>
Wed, 13 May 2015 17:43:04 +0000 (19:43 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:46 +0000 (22:21 +0200)
commit48d895aa4b2475ef0af234b832d92d0ac4a47761
treea33c4694aa31ca879ad4d557b241c15f05439425
parent74a77a4c1a5dafccbad0ff8c7fb55156c6643685
st/nine: Return NULL pointer in lock error cases

Tests showed, that in case of errors, the pBits pointer is set to NULL.
The pBits field isn't set to NULL in case of an already locked object.

Reviewed-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/volume9.c