Skip to content
Commit 1b47fd45 authored by Colin Ian King's avatar Colin Ian King Committed by Bjorn Helgaas
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 64609eaa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment