Commit e50c85f4 authored by Eric Anholt's avatar Eric Anholt Committed by Adam Jackson

Fix segfault on probing a non-PCI platform device on a system with PCI.

Some Broadcom set-top-box boards have PCI busses, but the GPU is still
probed through DT.  We would dereference a null busid here in that
Signed-off-by: Eric Anholt's avatarEric Anholt <>
parent 3297a1c8
Pipeline #7078 passed with stage
in 1 minute and 14 seconds
......@@ -289,7 +289,7 @@ xf86platformProbe(void)
for (i = 0; i < xf86_num_platform_devices; i++) {
char *busid = xf86_platform_odev_attributes(i)->busid;
if (pci && (strncmp(busid, "pci:", 4) == 0)) {
if (pci && busid && (strncmp(busid, "pci:", 4) == 0)) {
platform_find_pci_info(&xf86_platform_devices[i], busid);
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