xf86-video-intel: src/i830_driver.c

Jesse Barnes jbarnes at kemper.freedesktop.org
Mon Sep 10 23:50:34 PDT 2007


 src/i830_driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree d9f2b3c0d2d08a4b7fad865dab7deb6224b57999 (from 4c7542ef43a5267e470ca1608a2ae57abf9783ec)
Author: Jesse Barnes <jbarnes at nietzche.virtuousgeek.org>
Date:   Mon Sep 10 23:49:34 2007 -0700

    Fix crash in ScreenInit
    
    Use pScreen directly when getting at the SAREA private, since
    pScrn->pScreen may not be initialized yet.

diff --git a/src/i830_driver.c b/src/i830_driver.c
index ea22855..27ec918 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2718,7 +2718,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr 
    }
 
    config = XF86_CRTC_CONFIG_PTR(pScrn);
-   sPriv = DRIGetSAREAPrivate(pScrn->pScreen);
+   sPriv = DRIGetSAREAPrivate(pScreen);
    /* Setup pipe->plane mappings for DRI & DRM */
    for (c = 0; c < config->num_crtc; c++) {
        xf86CrtcPtr crtc = config->crtc[c];


More information about the xorg-commit mailing list