diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-12 19:49:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-12 19:49:34 +0100 |
commit | 22be9988b933f33fc5247a9abc3b00a7f2e4a202 (patch) | |
tree | a7f4402efea053624f00efde9997a024578b1907 /src/sna/sna_driver.c | |
parent | 32e7f4ee64867779b2def6fcd882708d7b0e2cf5 (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.c | 3 |
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, |