android_kernel_samsung_msm8976/drivers/pci
Michel Dänzer c1b940de40 PCI: Fix infinite loop with ROM image of size 0
commit 16b036af31e1456cb69243a5a0c9ef801ecd1f17 upstream.

If the image size would ever read as 0, pci_get_rom_size() could keep
processing the same image over and over again.  Exit the loop if we ever
read a length of zero.

This fixes a soft lockup on boot when the radeon driver calls
pci_get_rom_size() on an AMD Radeon R7 250X PCIe discrete graphics card.

[bhelgaas: changelog, reference]
Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1386973
Reported-by: Federico <federicotg@gmail.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-06 14:40:48 -08:00
..
hotplug PCI: shpchp: Check bridge's secondary (not primary) bus speed 2014-06-07 13:25:38 -07:00
pcie
Kconfig
Makefile
access.c
ats.c
bus.c
host-bridge.c
hotplug-pci.c
htirq.c
ioapic.c
iov.c
irq.c
msi.c PCI/MSI: Add device flag indicating that 64-bit MSIs don't work 2014-12-06 15:05:47 -08:00
of.c
pci-acpi.c
pci-driver.c PCI: Generate uppercase hex for modalias var in uevent 2015-03-06 14:40:48 -08:00
pci-label.c
pci-stub.c
pci-sysfs.c PCI: Generate uppercase hex for modalias interface class 2014-10-30 09:35:12 -07:00
pci.c PCI: Fix incorrect vgaarb conditional in WARN_ON() 2014-07-06 18:54:13 -07:00
pci.h
probe.c PCI: Restore detection of read-only BARs 2015-01-16 06:59:00 -08:00
proc.c
quirks.c PCI: Increase IBM ipr SAS Crocodile BARs to at least system page size 2014-10-30 09:35:12 -07:00
remove.c
rom.c PCI: Fix infinite loop with ROM image of size 0 2015-03-06 14:40:48 -08:00
search.c
setup-bus.c
setup-irq.c
setup-res.c
slot.c
syscall.c
vpd.c
xen-pcifront.c