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

zink_render_pass_reference will dereference the memory 'dst' points at,
which can't really go well. All we want to do here is to increase the
reference-count, so let's use a different helper for that instead.

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