acrn-kernel/arch/x86/pci
Shyam Iyer 5307f6d5fb Fix pointer dereference before call to pcie_bus_configure_settings
Commit b03e7495a8 ("PCI: Set PCI-E Max Payload Size on fabric")
introduced a potential NULL pointer dereference in calls to
pcie_bus_configure_settings due to attempts to access pci_bus self
variables when the self pointer is NULL.

To correct this, verify that the self pointer in pci_bus is non-NULL
before dereferencing it.

Reported-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Shyam Iyer <shyam_iyer@dell.com>
Signed-off-by: Jon Mason <mason@myri.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-09 19:49:58 -07:00
..
Makefile ce4100: Add PCI register emulation for CE4100 2010-11-12 00:45:41 +01:00
acpi.c Fix pointer dereference before call to pcie_bus_configure_settings 2011-09-09 19:49:58 -07:00
amd_bus.c x86: Adjust section placement in AMD northbridge related code 2011-02-10 13:32:52 +01:00
broadcom_bus.c x86/PCI: don't use native Broadcom CNB20LE driver when ACPI is available 2011-01-14 08:55:41 -08:00
bus_numa.c
bus_numa.h
ce4100.c x86/PCI: config space accessor functions should not ignore the segment argument 2011-07-22 08:25:41 -07:00
common.c x86/PCI: Preserve existing pci=bfsort whitelist for Dell systems 2011-07-22 08:44:28 -07:00
direct.c x86/PCI: config space accessor functions should not ignore the segment argument 2011-07-22 08:25:41 -07:00
early.c
fixup.c
i386.c x86: Fix common misspellings 2011-03-18 10:39:30 +01:00
init.c
irq.c x86/PCI: irq and pci_ids patch for Intel Panther Point DeviceIDs 2011-05-10 15:43:36 -07:00
legacy.c x86/PCI: pci, fix section mismatch 2010-07-30 09:29:09 -07:00
mmconfig-shared.c x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform 2011-06-03 16:00:03 +02:00
mmconfig_32.c x86/PCI: Convert pci_config_lock to raw_spinlock 2010-05-11 12:01:09 -07:00
mmconfig_64.c
mrst.c x86, pci, mrst: Add extra sanity check in walking the PCI extended cap chain 2010-07-16 16:52:15 -07:00
numaq_32.c x86/PCI: config space accessor functions should not ignore the segment argument 2011-07-22 08:25:41 -07:00
olpc.c x86/PCI: config space accessor functions should not ignore the segment argument 2011-07-22 08:25:41 -07:00
pcbios.c x86/PCI: config space accessor functions should not ignore the segment argument 2011-07-22 08:25:41 -07:00
visws.c PCI: Make the struct pci_dev * argument of pci_fixup_irqs const. 2011-07-22 08:26:06 -07:00
xen.c xen/pci: Use 'acpi_gsi_to_irq' value unconditionally. 2011-07-11 13:19:34 -04:00