Skip to content

Commit

Permalink
drm-syncobj: fix crash on missing timelines
Browse files Browse the repository at this point in the history
fixes #8092
  • Loading branch information
vaxerski committed Oct 12, 2024
1 parent c3f7c9b commit 1822707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/protocols/DRMSyncobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ CDRMSyncobjSurfaceResource::CDRMSyncobjSurfaceResource(SP<CWpLinuxDrmSyncobjSurf
return;
}

if (!pending.acquireTimeline)
return;

if (pending.acquireTimeline && pending.releaseTimeline && pending.acquireTimeline == pending.releaseTimeline) {
if (pending.acquirePoint >= pending.releasePoint) {
resource->error(WP_LINUX_DRM_SYNCOBJ_SURFACE_V1_ERROR_CONFLICTING_POINTS, "Acquire and release points are on the same timeline, and acquire >= release");
Expand Down

0 comments on commit 1822707

Please sign in to comment.