summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-12 19:49:34 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-12 19:49:34 +0100
commit22be9988b933f33fc5247a9abc3b00a7f2e4a202 (patch)
treea7f4402efea053624f00efde9997a024578b1907 /src/sna/sna_driver.c
parent32e7f4ee64867779b2def6fcd882708d7b0e2cf5 (diff)
sna: Check for failure to initialize the sprite pointers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index 0bb5c408..eee9527c 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -891,7 +891,8 @@ sna_screen_init(SCREEN_INIT_ARGS_DECL)
miInitializeBackingStore(screen);
xf86SetBackingStore(screen);
xf86SetSilkenMouse(screen);
- miDCInitialize(screen, xf86GetPointerScreenFuncs());
+ if (!miDCInitialize(screen, xf86GetPointerScreenFuncs()))
+ return FALSE;
xf86DrvMsg(scrn->scrnIndex, X_INFO, "Initializing HW Cursor\n");
if (!xf86_cursors_init(screen, SNA_CURSOR_X, SNA_CURSOR_Y,