summaryrefslogtreecommitdiff
path: root/src/sna/sna_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_display.c')
-rw-r--r--src/sna/sna_display.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 867a10b5..d01e6a42 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1447,9 +1447,12 @@ sna_crtc_apply(xf86CrtcPtr crtc)
ret = 0;
if (unlikely(drmIoctl(sna->kgem.fd, DRM_IOCTL_MODE_SETCRTC, &arg))) {
ret = errno;
- sna_crtc->mode_serial++;
- sna_crtc_force_outputs_on(crtc);
+ goto unblock;
}
+
+ sna_crtc->mode_serial++;
+ sna_crtc_force_outputs_on(crtc);
+
unblock:
kmsg_close(&kmsg, ret);
sigio_unblock(sigio);