PCI: cpqphp: Fix possible NULL pointer dereference
authorShawn Lin <shawn.lin@rock-chips.com>
Sun, 25 Feb 2018 02:01:42 +0000 (10:01 +0800)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 28 Feb 2018 20:35:54 +0000 (14:35 -0600)
commit205adda79a408f4a2945f636e1c076f7db3b2045
tree5839bc4242ed2c1bddfb646285d3955d795a01cb
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
PCI: cpqphp: Fix possible NULL pointer dereference

Check io_node for NULL before dereferencing it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/hotplug/cpqphp_ctrl.c