diff options
Diffstat (limited to 'src/legacy')
-rw-r--r-- | src/legacy/i810/i810_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/legacy/i810/i810_driver.c b/src/legacy/i810/i810_driver.c index 6ead393a..4a73e9b5 100644 --- a/src/legacy/i810/i810_driver.c +++ b/src/legacy/i810/i810_driver.c @@ -254,7 +254,7 @@ I810PreInit(ScrnInfoPtr scrn, int flags) pI810 = I810PTR(scrn); pI810->pEnt = xf86GetEntityInfo(scrn->entityList[0]); - if (pI810->pEnt->location.type != BUS_PCI) + if (pI810->pEnt == NULL || pI810->pEnt->location.type != BUS_PCI) return FALSE; if (flags & PROBE_DETECT) { |