zink: avoid NULL-deref
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 27 Nov 2019 16:34:08 +0000 (17:34 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 29 Nov 2019 08:54:25 +0000 (09:54 +0100)
commite54240f1531ac58f2eefb8df7294a12f187c1cc5
treeb81fa255f137e7cfb279873158f84d8bfb1a011b
parentbda64440e45233d0bfd51b9c1596ae3a1788c3fd
zink: avoid NULL-deref

Similar to the previous commit, pipe_resource_reference also dereference
the memory pointed at. Let's avoid it.

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