diff options
author | Andy Shevchenko <[email protected]> | 2018-03-20 20:08:00 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-03-27 11:33:16 +0200 |
commit | 47a9973d3ed8994589c845c8b1a293a475a549a9 (patch) | |
tree | 7b9dff2af962ceb405d66a134075f29020379ba6 /drivers/pci/pci.c | |
parent | 3af345258617e0412059c1ab6462495947f73e89 (diff) |
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 <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Jean Delvare <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Lukas Wunner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rafael J . Wysocki <[email protected]>
Cc: [email protected]
Cc: [email protected]
Fixes: 69c42d493db4 ("x86/pci: Simplify code by using the new dmi_get_bios_year() helper")
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions