diff options
author | Keith Packard <keithp@keithp.com> | 2010-11-25 11:58:06 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-11-25 11:58:06 +1000 |
commit | 830e58d086828fa0431303df32a847ddd3022654 (patch) | |
tree | a6ab163a158b31ee7977e02da95ea9ec7940c1af | |
parent | 01eacf0d219dc514c2f3a2e5afd2f840412ae510 (diff) |
savage: fix use of privates without initialisation
Fixes bug 31614.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/savage_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |