kmsdrm: Add missing KMSDRM_FBFromBO() failure check

This commit is contained in:
Cameron Gutman
2026-04-02 22:02:18 -05:00
parent be8643f739
commit 1674a04b01

View File

@@ -215,6 +215,11 @@ static bool KMSDRM_DumpCursorToBO(SDL_VideoDisplay *display, SDL_Mouse *mouse, S
KMSDRM_FBInfo *fb = KMSDRM_FBFromBO(video_device, dispdata->cursor_bo);
KMSDRM_PlaneInfo info;
if (!fb) {
result = SDL_SetError("Failed to get cursor FB from BO");
goto cleanup;
}
// Show the GBM BO buffer on the cursor plane.
SDL_zero(info);
info.plane = dispdata->cursor_plane;