mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radv/rra: Fix nullptr dereference
cc: mesa-stable Reviewed-by: Natalie Vock <natalie.vock@gmx.de> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39640>
This commit is contained in:
parent
1bc23bdbb8
commit
2f3a9c10f4
1 changed files with 1 additions and 1 deletions
|
|
@ -790,7 +790,7 @@ rra_map_accel_struct_data(struct rra_copy_context *ctx, uint32_t i)
|
|||
if (radv_GetEventStatus(ctx->device, data->build_event) != VK_EVENT_SET)
|
||||
return NULL;
|
||||
|
||||
if (data->buffer->memory) {
|
||||
if (data->buffer && data->buffer->memory) {
|
||||
VkMemoryMapInfo memory_map_info = {
|
||||
.sType = VK_STRUCTURE_TYPE_MEMORY_MAP_INFO,
|
||||
.memory = data->buffer->memory,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue