anv: null check for buffer before reading size
authorTapani Pälli <tapani.palli@intel.com>
Tue, 18 Aug 2020 12:16:37 +0000 (15:16 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 20 Aug 2020 05:33:59 +0000 (08:33 +0300)
commit709dffa856682b706e516dd324e2f5129a127e8e
treeb07f6c56d1e54a77fc438698da289bcc50991601
parent8d38b25788c9f9bcc1c8bf2a422162328ac663d1
anv: null check for buffer before reading size

v2: move assignment under existing check (Nanley)

Fixes: b9a05447a19 ("anv: dynamic vertex input binding stride and size support")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6369>
src/intel/vulkan/genX_cmd_buffer.c