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
This commit is contained in:
Xiang, Haihao 2008-09-16 11:49:39 -07:00 committed by Eric Anholt
parent e2743a409a
commit 188d58dac9
1 changed files with 1 additions and 1 deletions

View File

@ -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);