summaryrefslogtreecommitdiff
path: root/src/legacy
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-04 12:21:27 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-04 12:31:09 +0100
commit9bff89b1892cee90a80909255876240126b700b2 (patch)
tree411614b51e94e76cdc950569863996f57ede1bac /src/legacy
parented6004f7ad09329bd4097331aaff38edc83107b6 (diff)
legacy/i810: Be paranoid and guard against xf86GetPciInfoForEntity
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/legacy')
-rw-r--r--src/legacy/i810/i810_driver.c2
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) {