summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-09-16 11:49:39 -0700
committerEric Anholt <eric@anholt.net>2008-09-16 11:51:07 -0700
commit188d58dac9a87b56dbc34ec219cd196928bbcf64 (patch)
treef4330c0b0bec6e443d9c8e3152fc260813508335 /src/i830_driver.c
parente2743a409a02978ca8e953dbbeeb96f61bbd5ce6 (diff)
Put back check for pI830->hw_status in setting hws in non-GEM mode.
Fixes crashes on non-GEM systems with physical hardware status page. Bug #17540
Diffstat (limited to 'src/i830_driver.c')
-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 e48e20ec..5e505cf2 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3693,7 +3693,7 @@ I830EnterVT(int scrnIndex, int flags)
* operation which accessing that page, like irq install, etc.
*/
if (pI830->starting && !pI830->memory_manager) {
- if (!I830DRISetHWS(pScrn)) {
+ if (pI830->hw_status != NULL && !I830DRISetHWS(pScrn)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Fail to setup hardware status page.\n");
I830DRICloseScreen(pScrn->pScreen);