summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@nietzche.virtuousgeek.org>2007-09-10 23:49:34 -0700
committerJesse Barnes <jbarnes@nietzche.virtuousgeek.org>2007-09-10 23:49:34 -0700
commitd9f2b3c0d2d08a4b7fad865dab7deb6224b57999 (patch)
tree685bd4c4eddddff9737bed15122ee72bfcff9c36
parent4c7542ef43a5267e470ca1608a2ae57abf9783ec (diff)
Fix crash in ScreenInit
Use pScreen directly when getting at the SAREA private, since pScrn->pScreen may not be initialized yet.
-rw-r--r--src/i830_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index ea22855d..27ec918f 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2718,7 +2718,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
}
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];