commit | de1627b1afdf65e5d1c7ca1cebec1aa5fb82ed0b | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Mon Jan 18 12:30:04 2021 +0100 |
committer | Marek Vasut <marex@denx.de> | Wed Feb 10 22:23:24 2021 +0100 |
tree | 55ef04dc622e5334c33e5ce4734e9d15459aab1a | |
parent | 5a5c94859f033cf1efe628ceff14a61ea5963b1e [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>