coreboot-kgpe-d16/src
Jacob Garber 5033d6ce51 nb/intel/x4x: Die on invalid memory speeds
The speed argument should be one of the six values from the mem_clock
enum, so something is very wrong if this is not the case. Better to
die now than return 0, which will cause a division-by-zero error
later on where this function is called. The first two speeds are also
unsupported and have the same problem with returning 0, so die on those
as well.

Change-Id: Ib628c0eed3d6571bdde1df27ae213ca0691ec256
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1391088
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33409
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-07-17 16:04:42 +00:00
..
acpi
arch cpu/x86: Move smm_lock() prototype 2019-07-13 13:17:21 +00:00
commonlib commonlib/storage: use ALIGN_UP instead of ALIGN for better readability 2019-06-21 12:49:43 +00:00
console console/Kconfig - only print UART addresses for I/O based UARTs 2019-07-13 17:53:22 +00:00
cpu cpu/x86: Fix DEBUG_SMM_RELOCATION dependency 2019-07-15 04:49:30 +00:00
device soc/intel: Fix regression with hidden PCI devices 2019-07-17 14:27:16 +00:00
drivers src: Use '#include <timestamp.h>' when needed 2019-07-15 02:26:52 +00:00
ec arch/x86: Avoid HAVE_SMI_HANDLER conditional with smm-class 2019-07-09 12:43:35 +00:00
include soc/intel/cannonlake: Add device Ids for new CFL SKUs support 2019-07-17 14:28:41 +00:00
lib lib/bootmode: Include 'vboot/misc.h' 2019-07-15 02:27:27 +00:00
mainboard mainboard/portwell/m107: Do initial mainboard commit 2019-07-17 14:21:52 +00:00
northbridge nb/intel/x4x: Die on invalid memory speeds 2019-07-17 16:04:42 +00:00
security src/security/vboot: Add option to skip display init with vboot 2.0 2019-07-07 20:09:24 +00:00
soc soc/rockchip/rk3288: Add fall through comment 2019-07-17 15:58:44 +00:00
southbridge intel/i82801ix: Refactor lock_smm() 2019-07-17 04:26:30 +00:00
superio nuvoton/early_serial: improve comments on serial pinmux settings 2019-06-22 11:39:12 +00:00
vendorcode vendorcode/amd/agesa/f15tn: Fix condition that has identical branches 2019-07-12 17:05:30 +00:00
Kconfig Kconfig: Remove HAVE_RAMSTAGE dependency from RELOCATABLE_RAMSTAGE 2019-07-12 02:22:27 +00:00