coreboot-kgpe-d16/src
Nico Huber 4b864e5c30 pciexp_device: Fix pciexp_find_next_extended_cap()
If we already encountered the last extended capability in the
list, we'd call pciexp_get_ext_cap_offset() with `offset == 0`.
So it also needs to check if the passed offset is valid.

As there were no callers of pciexp_find_next_extended_cap()
yet, pciexp_get_ext_cap_offset() was only ever called with
`PCIE_EXT_CAP_OFFSET`.

Change-Id: I155c4691a34ff16661919913a3446fa915ac535e
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66452
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Bill XIE <persmule@hardenedlinux.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
2022-08-15 19:22:20 +00:00
..
acpi treewide: Unify Google branding 2022-07-04 14:02:26 +00:00
arch arm/libgcc: Support signed 64-bit division 2022-08-13 17:20:32 +00:00
commonlib commonlib/timestamp_serialized: Add comment explaining "ignore for x86" 2022-08-07 19:28:09 +00:00
console
cpu arch/x86: Fix MAX_CPUS check proper for late X2APIC config 2022-07-25 10:06:18 +00:00
device pciexp_device: Fix pciexp_find_next_extended_cap() 2022-08-15 19:22:20 +00:00
drivers drivers/nxp/uwb: Add new driver for NXP UWB SR1xx chip 2022-08-14 21:13:33 +00:00
ec ec/system76/ec: Provide charging thresholds by default 2022-07-16 22:48:06 +00:00
include timer: Switch mono_time to uint64_t 2022-08-13 17:20:11 +00:00
lib lib: Add SPDX identifiers to files missing them 2022-08-11 17:53:29 +00:00
mainboard mb/google/guybrush: Pass in Cr50 IRQ to PSP 2022-08-15 16:41:53 +00:00
northbridge nb/amd: Fix some white spaces issues 2022-07-17 21:57:31 +00:00
security security/vboot: Simplify image signing 2022-07-30 18:29:25 +00:00
soc soc/amd/common/fsp/fsp-acpi: rework HOB pointer validity check 2022-08-15 18:31:38 +00:00
southbridge southbridge: Add SPDX identifiers to files missing them 2022-08-11 17:52:52 +00:00
superio superio/ite/common/early_serial.c: ite_kill_watchdog: set timeout to 0 2022-08-07 19:54:43 +00:00
vendorcode vc/amd/fsp/cezanne,mendocino: add FSP CCX CPPC HOB GUID and struct 2022-08-13 19:28:24 +00:00
Kconfig src/Kconfig: src/soc/*/Kconfig files are gone, remove the include 2022-06-24 04:00:15 +00:00