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