]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/pci/host/pci-mvebu.c
PCI: mvebu: Check valid base address before port setup
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 26 Jul 2013 13:17:49 +0000 (10:17 -0300)
committerJason Cooper <jason@lakedaemon.net>
Tue, 6 Aug 2013 14:10:41 +0000 (14:10 +0000)
commitb22503a9c3bd8a3512fa4daf2c6c456d12db34de
tree3db9abf96e87b842a7dc1f01c9cbc3ca4fa7d06a
parent11be65472a427dcf7a11ab6e3e3628f1c6768b5b
PCI: mvebu: Check valid base address before port setup

This driver does not fail to probe when it cannot obtain
a port base address. Therefore, add a check for NULL base address
before setting up the port, which prevents a kernel panic in such
cases.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/pci/host/pci-mvebu.c