PCI: cpqphp: Fix possible null pointer dereference
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 18 May 2014 16:02:57 +0000 (18:02 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 28 May 2014 02:51:14 +0000 (20:51 -0600)
commitcab9a128dad0fa0c8400a03d9375c781dda43982
treed8d22dbf6548a0eca78e90b8f124c2b8d5cf9bf3
parentf0d54a541751af2c6a16d0c081788cc2aef922a5
PCI: cpqphp: Fix possible null pointer dereference

There is otherwise a risk of a null pointer dereference.

Found by cppcheck, a static code analysis program.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/cpqphp_ctrl.c