From b83cbec34a8d1ff39bd303fcd27fc03dcdb1d6c3 Mon Sep 17 00:00:00 2001 From: Zou Nan hai Date: Wed, 20 Dec 2006 17:32:05 +0800 Subject: [PATCH] fix null pointer reference, I hit this when running doom3-demo --- src/i830_sdvo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_sdvo.c b/src/i830_sdvo.c index cb68802a..df5f130c 100644 --- a/src/i830_sdvo.c +++ b/src/i830_sdvo.c @@ -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); } }