summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-03-29 17:05:08 +0200
committerNico Huber <nico.h@gmx.de>2017-04-26 12:06:44 +0200
commita52731d78478056039f935f8fad86007132fd2a7 (patch)
tree2ea7de24b0306eaf2ee2ad39b23260426d0ae829 /util
parent0ea99f57c9d8fe28600cd08f653c10e5c0c0dd3f (diff)
downloadflashrom-a52731d78478056039f935f8fad86007132fd2a7.tar.gz
flashrom-a52731d78478056039f935f8fad86007132fd2a7.tar.bz2
flashrom-a52731d78478056039f935f8fad86007132fd2a7.zip
ich_descriptors_tool: Fix an off-by-one
Change-Id: I008abd78c7c42bf3f17e68c192cd79dd427c5cb5 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/19045 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/ich_descriptors_tool/ich_descriptors_tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ich_descriptors_tool/ich_descriptors_tool.c b/util/ich_descriptors_tool/ich_descriptors_tool.c
index 0da27d24e..250abf003 100644
--- a/util/ich_descriptors_tool/ich_descriptors_tool.c
+++ b/util/ich_descriptors_tool/ich_descriptors_tool.c
@@ -230,7 +230,7 @@ int main(int argc, char *argv[])
prettyprint_ich_descriptors(cs, &desc);
pMAC = (uint8_t *) &buf[ICH_FREG_BASE(desc.region.reg3_base) >> 2];
- if (len >= ICH_FREG_BASE(desc.region.reg3_base) + 5 && pMAC[0] != 0xff)
+ if (len >= ICH_FREG_BASE(desc.region.reg3_base) + 6 && pMAC[0] != 0xff)
printf("The MAC address might be at offset 0x%x: "
"%02x:%02x:%02x:%02x:%02x:%02x\n",
ICH_FREG_BASE(desc.region.reg3_base),