diff options
author | Martin Roth <martinroth@google.com> | 2016-11-18 08:56:10 -0700 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2016-11-24 00:11:12 +0100 |
commit | c8c5ae101aed919959187a0ad33cfbff263ff6a7 (patch) | |
tree | 14af46b9d25c0eb5af7d63a658ec5714593ff500 /src/soc/nvidia | |
parent | ff94e003626ff0a496d12c703155c63ee3bbd22d (diff) | |
download | coreboot-c8c5ae101aed919959187a0ad33cfbff263ff6a7.tar.xz |
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>
Diffstat (limited to 'src/soc/nvidia')
0 files changed, 0 insertions, 0 deletions