sna/dri2: Add a bit of paranoia required for a wedged GPU

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 19 June 2015 09:31 UTC

We can fail to submit the batch if the GPU is wedged (or the driver upset), in which case the bo will be NULL and we should not blindly dereference it.

fa1b405 sna/dri2: Add a bit of paranoia required for a wedged GPU
src/sna/sna_dri2.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share