zink: do not try to destroy NULL-fence
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 27 Nov 2019 16:22:24 +0000 (17:22 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 29 Nov 2019 08:54:25 +0000 (09:54 +0100)
commit8772d95d40367a2e27aef2127213a99540625632
tree9ad290406f7cb2247876f2bf200eca119eb96f66
parent49f53ee336e0cc0ad89ab1a8178c4d751dd09de8
zink: do not try to destroy NULL-fence

destroy_fence doesn't handle NULL-pointers gracefully. So let's avoid
hitting that code-path, by simply returning NULL early here instead.

CoverityID: 1455179
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/zink/zink_fence.c