summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 307d5344..f6a6d99b 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -5470,6 +5470,9 @@ output_retrain_link(struct sna *sna, struct sna_output *output)
int crtc_x = crtc->offset & 0xffff;
int crtc_y = crtc->offset >> 16;
+ if (!crtc->bo)
+ return false;
+
return sna_crtc_flip(sna, crtc, crtc->bo, crtc_x, crtc_y);
}