coreboot/src
Werner Zeh 52793444be drivers/intel/fsp1_1: Handle errors in find_fsp()
The function find_fsp() parses the FSP header and returns either a valid
pointer to the FSP_INFO_HEADER or an error code. The caller of
find_fsp() only takes care about a NULL-pointer but not about a possible
error code. This leads to memory access violations in case of error when
FspTempRamInit is called.

To avoid this and to let the user know that there was an error while
parsing the FSP header show an error message and the error code.

Change-Id: I67fef0a53fb04c8ba5d18b5d4ef2fdc1aeba869e
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/20560
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-07-17 03:18:03 +00:00
..
acpi
arch src: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:57:07 +00:00
commonlib Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
console src: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:57:07 +00:00
cpu vendorcode/amd/agesa: Tidy up gcccar.inc 2017-07-15 16:10:19 +00:00
device device/pciexp_device.c: Terminate CLK PM message with newline 2017-07-15 21:54:23 +00:00
drivers drivers/intel/fsp1_1: Handle errors in find_fsp() 2017-07-17 03:18:03 +00:00
ec ec/mec1308: Fix fan control ACPI 2017-07-08 19:06:00 +00:00
include assert: Add new dead_code() macro to assert dead code paths 2017-07-16 23:56:34 +00:00
lib Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
mainboard google/fizz: Override PL2 and SysPL2 values 2017-07-14 22:47:31 +00:00
northbridge Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
soc soc/amd/stoneyridge:Fix IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:33 +00:00
southbridge southbridge/intel: add IS_ENABLED() around Kconfig symbol references 2017-07-16 19:22:18 +00:00
superio superio/ite/it8716f: Update init_ec 2017-07-08 19:02:13 +00:00
vboot Rename __attribute__((packed)) --> __packed 2017-07-13 19:45:59 +00:00
vendorcode vendorcode/amd/agesa: Tidy up gcccar.inc 2017-07-15 16:10:19 +00:00
Kconfig Add support for Undefined Behavior Sanitizer 2017-06-14 19:56:59 +02:00