diff options
author | Pali Rohár <pali@kernel.org> | 2021-01-18 12:30:04 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2021-02-10 22:23:24 +0100 |
commit | 5a5024fee073fea1b2f72601c4f3f006451fd176 (patch) | |
tree | 55ef04dc622e5334c33e5ce4734e9d15459aab1a /test/py/u_boot_console_exec_attach.py | |
parent | eb885c98ed57dd319e734a4c7d777c15a8007873 (diff) |
usb: xhci-pci: Check for errors from dm_pci_map_bar()
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.
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'test/py/u_boot_console_exec_attach.py')
0 files changed, 0 insertions, 0 deletions