config: Fix platform busid parsing when there is no ID_PATH prop

On at least Lenovo Thinkpad E585 udev does not have ID_PATH property for
the drm node (see
xorg/xserver#993). While this is
likely udev bug, this causes the device to be not recognized as
attribs->busid is NULL, which causes platform_find_pci_info to be not
called and corresponding xf86_platform_devices[i]->pdev to be NULL.

At this moment pdev being NULL will cause a crash, but this is a
different bug.

Fixes: xorg/xserver#993
Fixes: 0816e8fc linux: Make platform device probe less fragile
Reviewed-by: Zoltán Böszörményi <>
Signed-off-by: Povilas Kanapickas <>
5 jobs for fix-platform-busid-udev-no-id-path in 6 minutes and 6 seconds (queued for 3 seconds)