linux-stable/arch/x86/pci
Andy Shevchenko 47a9973d3e x86/PCI: Fix a potential regression when using dmi_get_bios_year()
dmi_get_bios_year() may return 0 when it cannot parse
the BIOS date string. Previously this has been checked in
pci_acpi_crs_quirks().

Update the code to restore old behaviour.

Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J . Wysocki <rjw@rjwysocki.net>
Cc: linux-acpi@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Fixes: 69c42d493d ("x86/pci: Simplify code by using the new dmi_get_bios_year() helper")
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-03-27 11:33:16 +02:00
..
acpi.c x86/PCI: Fix a potential regression when using dmi_get_bios_year() 2018-03-27 11:33:16 +02:00
amd_bus.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
broadcom_bus.c x86/PCI: Make broadcom_postcore_init() check acpi_disabled 2017-12-06 12:27:47 +01:00
bus_numa.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bus_numa.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ce4100.c x86/PCI/ce4100: Properly lock accessor functions 2017-06-28 22:32:55 +02:00
common.c x86/PCI: Add "pci=big_root_window" option for AMD 64-bit windows 2018-01-11 11:22:39 -06:00
direct.c x86/pci: Simplify code by using the new dmi_get_bios_year() helper 2018-02-23 08:20:30 +01:00
early.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fixup.c x86/PCI: Enable AMD 64-bit window on resume 2018-01-16 11:45:50 -06:00
i386.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
init.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
intel_mid_pci.c x86/platform/intel-mid: Move PCI initialization to arch_init() 2018-01-19 09:15:42 +01:00
irq.c x86/PCI: Deprecate pci_get_bus_and_slot() 2018-01-11 17:22:58 -06:00
legacy.c PCI: Scan all functions when running over Jailhouse 2018-03-08 12:30:37 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmconfig-shared.c x86/jailhouse: Enable PCI mmconfig access in inmates 2018-03-08 12:30:38 +01:00
mmconfig_32.c x86/boot/e820: Move asm/e820.h to asm/e820/api.h 2017-01-28 09:31:13 +01:00
mmconfig_64.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
numachip.c x86: numachip: APIC driver cleanups 2014-11-04 18:17:27 +01:00
olpc.c
pcbios.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sta2x11-fixup.c dma-mapping: move swiotlb arch helpers to a new header 2018-01-10 16:40:54 +01:00
xen.c xen/pci: Use acpi_noirq_set() helper to avoid #ifdef 2017-12-18 23:09:08 -06:00