On systems that hide the PCI bridge device corresponding to a PCIe RC port
authorkettenis <kettenis@openbsd.org>
Sun, 11 Apr 2021 15:30:51 +0000 (15:30 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 11 Apr 2021 15:30:51 +0000 (15:30 +0000)
commitb699e85794e12d4fd991ee9a19cfb69c8386743c
treec6760ed58f7aeed09b79cb1c4483b76501cfb44e
parent8a7eb87943af74c952190b34e4a20f4b7a77f84b
On systems that hide the PCI bridge device corresponding to a PCIe RC port
we may end up passing a NULL pointer to pcie_get_speed_cap().  Handle this
by returning PCI_SPEED_UNKNOWN instead of dereferencing a null-pointer.

ok jsg@
sys/dev/pci/drm/drm_linux.c