diff --git a/src/gallium/drivers/v3d/v3d_resource.c b/src/gallium/drivers/v3d/v3d_resource.c index c45c9073b88..350bedaa57d 100644 --- a/src/gallium/drivers/v3d/v3d_resource.c +++ b/src/gallium/drivers/v3d/v3d_resource.c @@ -808,7 +808,7 @@ v3d_resource_create_with_modifiers(struct pipe_screen *pscreen, if (!rsc->scanout) { fprintf(stderr, "Failed to create scanout resource\n"); - return NULL; + goto fail; } assert(handle.type == WINSYS_HANDLE_TYPE_FD); rsc->bo = v3d_bo_open_dmabuf(screen, handle.handle);