xf86-video-intel: src/i830_display.c

Zhenyu Wang zhen at kemper.freedesktop.org
Mon Aug 13 22:55:34 PDT 2007


 src/i830_display.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 5126a71f82767b9e23cd590453718f3364789740 (from d9f89a1af7e7ff4056727060cdf2e35c15a4dcdd)
Author: Zhenyu Wang <zhenyu.z.wang at intel.com>
Date:   Tue Aug 14 13:54:55 2007 +0800

    Fix seg fault introduced in tiling patch when TV detect
    
    When TV does load detect, fb hasn't been setup, so we should check
    that in i830_display_tiled(). Caught by Nanhai.

diff --git a/src/i830_display.c b/src/i830_display.c
index 7a229b2..706b9ba 100644
--- a/src/i830_display.c
+++ b/src/i830_display.c
@@ -511,7 +511,7 @@ i830_display_tiled(xf86CrtcPtr crtc)
     if (crtc->rotatedData)
 	return FALSE;
 
-    if (pI830->front_buffer->tiling != TILE_NONE)
+    if (pI830->front_buffer && pI830->front_buffer->tiling != TILE_NONE)
 	return TRUE;
 
     return FALSE;


More information about the xorg-commit mailing list