[PATCH v2] usb: xhci-pci: Check for errors from dm_pci_map_bar()

Marek Vasut marex at denx.de
Mon Jan 18 13:28:00 CET 2021


On 1/18/21 12:30 PM, Pali Rohár wrote:
> Function dm_pci_map_bar() may fail and returns NULL. Check this to prevent
> dereferencing a NULL pointer.
> 
> In xhci-pci this may happen when board does not enable CONFIG_PCI_PNP and
> PCI_BASE_ADDRESS_0 contains unconfigured zero address.

Applied, thanks


More information about the U-Boot mailing list