Skip to content

Commit

Permalink
fix compile errors?
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Aug 30, 2024
1 parent f42e676 commit 54ee397
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gallium/winsys/kmsro/drm/kmsro_drm_winsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ struct pipe_screen *kmsro_drm_screen_create(int kms_fd,
ro->create_for_resource = panfrost_create_kms_dumb_buffer_for_resource;
screen = panfrost_drm_screen_create_renderonly(ro->gpu_fd, ro, config);
if (!screen)
goto out_free;
{
if (ro->gpu_fd >= 0)
close(ro->gpu_fd);
FREE(ro);

return NULL;
}

return screen;
}
Expand Down

0 comments on commit 54ee397

Please sign in to comment.