summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2004-12-15 08:03:34 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2004-12-15 08:03:34 +0000
commitba4af626981384e648c0b29b22ffc214361b1c39 (patch)
treeab6bc4d8c7331441fb40f18d2a1abfbe73e499a1
parent198c804f23489520cec4eb55669f6f17eb425280 (diff)
//bugs.freedesktop.org/show_bug.cgi?id=1928) attachment #1387
(https://bugs.freedesktop.org/attachment.cgi?id=1387): Added some early bailouts to atiprobe if PCI structure pointer is NULL to prevent sig11. Patch by Egbert Eich <eich@freedesktop.org>
-rw-r--r--src/atiprobe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/atiprobe.c b/src/atiprobe.c
index 08cc56f..e262a82 100644
--- a/src/atiprobe.c
+++ b/src/atiprobe.c
@@ -1554,6 +1554,9 @@ ATIProbe
continue;
pPCI = pVideo->thisCard;
+ if (pPCI == NULL)
+ continue;
+
PciReg = pciReadLong(pPCI->tag, PCI_REG_USERCONFIG);
j = PciReg & 0x03U;
if (j == 0x03U)