fix null pointer reference,

I hit this when running doom3-demo
This commit is contained in:
Zou Nan hai 2006-12-20 17:32:05 +08:00
parent 07d3f14171
commit b83cbec34a
1 changed files with 1 additions and 1 deletions

View File

@ -981,7 +981,7 @@ i830_sdvo_dump(ScrnInfoPtr pScrn)
xf86OutputPtr output = xf86_config->output[i];
I830OutputPrivatePtr intel_output = output->driver_private;
if (intel_output->type == I830_OUTPUT_SDVO)
if (intel_output->type == I830_OUTPUT_SDVO && (intel_output->pI2CBus))
i830_sdvo_dump_device(output);
}
}