summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-08-14 13:54:55 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-08-14 13:54:55 +0800
commit5126a71f82767b9e23cd590453718f3364789740 (patch)
tree853bfdc122ed1f6081acaa06923431a610569023
parentd9f89a1af7e7ff4056727060cdf2e35c15a4dcdd (diff)
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.
-rw-r--r--src/i830_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_display.c b/src/i830_display.c
index 7a229b27..706b9ba8 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;