Commit 66e7909b authored by Pascal Terjan's avatar Pascal Terjan Committed by Adam Jackson
Browse files

Initialize pci_dev

Else it is read before initialization if XSERVER_LIBPCIACCESS is not
defined or location.type is not BUS_PCI.

Noticed when I got a segfault where it was 0x1 while doing some tests on
Signed-off-by: default avatarPascal Terjan <>
Reviewed-by: Emil Velikov's avatarEmil Velikov <>
parent ae0aeffa
......@@ -427,7 +427,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
int default_depth, fbbpp;
const char *s;
int type;
void *pci_dev;
void *pci_dev = NULL;
if (flags & PROBE_DETECT) return FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment