[Spice-devel] [xf86 qxl driver PATCH 3/5] qxl_driver: check_crtc: handle qxl->crtcs == NULL
Uri Lublin
uril at redhat.com
Thu Jan 17 06:26:33 PST 2013
---
src/qxl_driver.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 1a253d2..d8abb7b 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1040,6 +1040,10 @@ check_crtc (qxl_screen_t *qxl)
int i, count = 0;
xf86CrtcPtr crtc;
+ if (qxl->crtcs == NULL) {
+ return 0;
+ }
+
for (i = 0 ; i < qxl->num_heads; ++i)
{
crtc = qxl->crtcs[i];
--
1.7.1
More information about the Spice-devel
mailing list