ac/virtio: fix incorrect NULL check

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38529>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2025-09-24 09:27:32 +02:00 committed by Marge Bot
parent 51365585e2
commit f57993b71d

View file

@ -307,7 +307,7 @@ amdvgpu_cs_submit_raw2(amdvgpu_device_handle dev, uint32_t ctx_id,
*syncobjs = realloc(*syncobjs, (*count + new_syncobj_count) * sizeof(struct drm_virtgpu_execbuffer_syncobj));
if (syncobjs == NULL) {
if (*syncobjs == NULL) {
ret = -ENOMEM;
goto error;
}