summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/pcihp_skeleton.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-01-02 03:27:01 +0300
committerBjorn Helgaas <bhelgaas@google.com>2016-01-08 21:12:33 +0300
commit1b47fd4551061ad6db5adf063d424aded798a7c9 (patch)
tree268a5f789769b258ecae3d85ab8f2b8f23b273f8 /drivers/pci/hotplug/pcihp_skeleton.c
parent64609eaab242d36e3e3b7cb81d31a028719feb74 (diff)
downloadlinux-1b47fd4551061ad6db5adf063d424aded798a7c9.tar.xz
PCI: acpiphp_ibm: Fix null dereferences on null ibm_slot
ibm_slot_from_id() can return null if the des header signature is not "aPCI" or if the kmalloc() for the return ACPI descriptor fails, causing potential null pointer dereferences on the return null descriptor. Handle the null case with appropriate check and error return. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/pcihp_skeleton.c')
0 files changed, 0 insertions, 0 deletions