From 830e58d086828fa0431303df32a847ddd3022654 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 25 Nov 2010 11:58:06 +1000 Subject: savage: fix use of privates without initialisation Fixes bug 31614. Signed-off-by: Dave Airlie --- src/savage_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/savage_driver.c b/src/savage_driver.c index 7c3ce90..1cb91f6 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -4267,6 +4267,7 @@ SavageUpdateKey(ScrnInfoPtr pScrn, int r, int g, int b) ol = 0; } if (!(pScreen = pScrn->pScreen) + || !psav->FBStart2nd || !(pScrOvlPriv = fbOverlayGetScrPriv(pScreen))) return; key = ((Shift(r,psav->overlay.redShift) & psav->overlay.redMask) -- cgit v1.2.3