]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: acpiphp_ibm: Avoid uninitialized variable reference
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Apr 2016 14:51:06 +0000 (17:51 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 15 Apr 2016 15:17:03 +0000 (10:17 -0500)
commit4d88d5a7bf92e31215543b955b8883dcf6f66c1f
tree2cc30fc737b6cdb6193a36b21129013317d70af7
parent9735a22799b9214d17d3c231fe377fc852f042e9
PCI: acpiphp_ibm: Avoid uninitialized variable reference

If ibm_get_table_from_acpi() fails then "table" isn't initialized.  Check
for failure so we don't reference "table" unless it's been initialized.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/acpiphp_ibm.c