Skip to content

Commit 6e08ec6

Browse files
committed
fix expected expression in modesetting.c
1 parent e0bd054 commit 6e08ec6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/modesetting.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,14 +2951,15 @@ kms_req_commit_common(struct kms_req *req, bool blocking, kms_scanout_cb_t scano
29512951
builder->drmdev->per_crtc_state[builder->crtc->index].userdata = NULL;
29522952
goto fail_unlock;
29532953

2954-
fail_unref_builder:
2955-
struct drmdev *drmdev = builder->drmdev;
2956-
kms_req_builder_unref(builder);
2957-
if (mode_blob != NULL) {
2958-
drm_mode_blob_destroy(mode_blob);
2954+
fail_unref_builder: {
2955+
struct drmdev *drmdev = builder->drmdev;
2956+
kms_req_builder_unref(builder);
2957+
if (mode_blob != NULL) {
2958+
drm_mode_blob_destroy(mode_blob);
2959+
}
2960+
drmdev_unlock(drmdev);
2961+
return ok;
29592962
}
2960-
drmdev_unlock(drmdev);
2961-
return ok;
29622963

29632964
fail_maybe_destroy_mode_blob:
29642965
if (mode_blob != NULL)

0 commit comments

Comments
 (0)