PCI: keystone: Don't dereference possible NULL pointer
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 9 Apr 2015 19:34:10 +0000 (14:34 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 9 Apr 2015 19:34:10 +0000 (14:34 -0500)
commitf76ea574d615cd003b2fc51580006f7dc220897c
tree599cd3ee2975f41304a51993d461365e98272714
parentc517d838eb7d07bbe9507871fab3931deccff539
PCI: keystone: Don't dereference possible NULL pointer

Check for failure from platform_get_resource() (this check actually happens
inside devm_ioremap_resource()) before dereferencing the pointer returned
from platform_get_resource().

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-keystone-dw.c