android_kernel_google_msm/drivers/pci/hotplug
Andreas Noever 7cf009d054 PCI: pciehp: Prevent NULL dereference during probe
commit bceee4a97e upstream.

pciehp assumes that dev->subordinate, the struct pci_bus for a bridge's
secondary bus, exists.  But we do not create that bus if we run out of bus
numbers during enumeration.  This leads to a NULL dereference in
init_slot() (and other places).

Change pciehp_probe() to return -ENODEV when no secondary bus is present.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-02-02 17:04:37 +08:00
..
acpi_pcihp.c
acpiphp.h
acpiphp_core.c
acpiphp_glue.c PCI: acpiphp: check whether _ADR evaluation succeeded 2012-10-13 05:38:38 +09:00
acpiphp_ibm.c
cpci_hotplug.h
cpci_hotplug_core.c
cpci_hotplug_pci.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
cpcihp_generic.c PCI hotplug: cpcihp: fix debug module parameter to be bool 2012-02-14 08:45:03 -08:00
cpcihp_zt5550.c
cpcihp_zt5550.h
cpqphp.h
cpqphp_core.c
cpqphp_ctrl.c
cpqphp_nvram.c
cpqphp_nvram.h
cpqphp_pci.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
cpqphp_sysfs.c
fakephp.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
ibmphp.h
ibmphp_core.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
ibmphp_ebda.c
ibmphp_hpc.c
ibmphp_pci.c
ibmphp_res.c
Kconfig
Makefile
pci_hotplug_core.c
pciehp.h PCI: pciehp: Use per-slot workqueues to avoid deadlock 2013-01-27 20:47:43 -08:00
pciehp_acpi.c
pciehp_core.c PCI: pciehp: Prevent NULL dereference during probe 2015-02-02 17:04:37 +08:00
pciehp_ctrl.c PCI: pciehp: Use per-slot workqueues to avoid deadlock 2013-01-27 20:47:43 -08:00
pciehp_hpc.c PCI: pciehp: Use per-slot workqueues to avoid deadlock 2013-01-27 20:47:43 -08:00
pciehp_pci.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
pcihp_skeleton.c
pcihp_slot.c
rpadlpar.h
rpadlpar_core.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
rpadlpar_sysfs.c
rpaphp.h
rpaphp_core.c
rpaphp_pci.c
rpaphp_slot.c
sgi_hotplug.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
shpchp.h PCI: shpchp: Use per-slot workqueues to avoid deadlock 2014-06-07 16:02:07 -07:00
shpchp_core.c PCI: shpchp: Use per-slot workqueues to avoid deadlock 2014-06-07 16:02:07 -07:00
shpchp_ctrl.c PCI: shpchp: Use per-slot workqueues to avoid deadlock 2014-06-07 16:02:07 -07:00
shpchp_hpc.c
shpchp_pci.c PCI: Rename pci_remove_bus_device to pci_stop_and_remove_bus_device 2012-02-27 12:12:18 -08:00
shpchp_sysfs.c