st/mesa: don't dereference stObj->pt if NULL
authorDave Airlie <airlied@gmail.com>
Tue, 10 Sep 2013 04:46:23 +0000 (14:46 +1000)
committerDave Airlie <airlied@gmail.com>
Sun, 15 Sep 2013 22:33:02 +0000 (08:33 +1000)
commit2f508f244e8e4cb4bb2b9f813548fbf0c89b77c1
treefdc72dd0c4aaca3057c9137a66edea6d89899faa
parentbbe3d6dc29f218e4d790e5ea359d3c6736e94226
st/mesa: don't dereference stObj->pt if NULL

It seems a user app can get us into this state, I trigger the fail
running fbo-maxsize inside virgl, it fails to create the backing
storage for the texture object, but then segfaults here when it
should fail the completeness test.

Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_cb_fbo.c