summaryrefslogtreecommitdiff
path: root/cmd/source.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-01-18 12:30:04 +0100
committerMarek Vasut <marex@denx.de>2021-02-10 22:23:24 +0100
commit5a5024fee073fea1b2f72601c4f3f006451fd176 (patch)
tree55ef04dc622e5334c33e5ce4734e9d15459aab1a /cmd/source.c
parenteb885c98ed57dd319e734a4c7d777c15a8007873 (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 'cmd/source.c')
0 files changed, 0 insertions, 0 deletions