zink: do not dereference null-pointer
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 25 Aug 2021 22:09:44 +0000 (00:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Aug 2021 18:32:03 +0000 (18:32 +0000)
commit4cc3554d85b1852debea21ee87c31bb7ffb8e203
treef3158ea220a18cc4ce61ed76608ff14b3d7bc09b
parent3fde1c42422a814bdd9ca15e02ef57888f53f378
zink: do not dereference null-pointer

The "locations" pointer can be null here, and memcpying from a null
pointer is not okay.

CID: 1485978

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12559>
src/gallium/drivers/zink/zink_context.c