Skip to content

Commit

Permalink
fix expected expression in modesetting.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ardera committed Sep 16, 2024
1 parent e0bd054 commit 6e08ec6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/modesetting.c
Original file line number Diff line number Diff line change
Expand Up @@ -2951,14 +2951,15 @@ kms_req_commit_common(struct kms_req *req, bool blocking, kms_scanout_cb_t scano
builder->drmdev->per_crtc_state[builder->crtc->index].userdata = NULL;
goto fail_unlock;

fail_unref_builder:
struct drmdev *drmdev = builder->drmdev;
kms_req_builder_unref(builder);
if (mode_blob != NULL) {
drm_mode_blob_destroy(mode_blob);
fail_unref_builder: {
struct drmdev *drmdev = builder->drmdev;
kms_req_builder_unref(builder);
if (mode_blob != NULL) {
drm_mode_blob_destroy(mode_blob);
}
drmdev_unlock(drmdev);
return ok;
}
drmdev_unlock(drmdev);
return ok;

fail_maybe_destroy_mode_blob:
if (mode_blob != NULL)
Expand Down

0 comments on commit 6e08ec6

Please sign in to comment.