coreboot/src/northbridge
Martin Roth c8c5ae101a nb/intel/i82810: Make sure DIMM size isn't negative
If smbus_read_byte returned an error when reading the DIMM size,
this value would be used as an offset into an array.

Check for the error, and set the DIMM size to 0 if there's
a problem.

Addresses coverity issue 1229658 - Negative array index read

Signed-off-by: Martin Roth <martinroth@google.com>
Change-Id: I6461a0fae819dd9261adbb411c4bba07520d076d
Reviewed-on: https://review.coreboot.org/17485
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
2016-11-24 00:11:12 +01:00
..
amd spi: Clean up SPI flash driver interface 2016-11-22 17:32:09 +01:00
intel nb/intel/i82810: Make sure DIMM size isn't negative 2016-11-24 00:11:12 +01:00
via Remove explicit select MMCONF_SUPPORT 2016-11-22 04:15:11 +01:00