diff options
-rw-r--r-- | util/nvramtool/lbtable.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/nvramtool/lbtable.c b/util/nvramtool/lbtable.c index 3753737b7e..142937a6d8 100644 --- a/util/nvramtool/lbtable.c +++ b/util/nvramtool/lbtable.c @@ -632,6 +632,10 @@ static void get_cmos_checksum_info(void) checksum = (struct cmos_checksum *)find_lbrec(LB_TAG_OPTION_CHECKSUM); + if (checksum == NULL) { + checksum = (struct cmos_checksum *)next_cmos_rec((const struct lb_record *)first_cmos_table_enum(), LB_TAG_OPTION_CHECKSUM); + } + if (checksum != NULL) { /* We are lucky. The coreboot table hints us to the checksum. * We might have to check the type field here though. */ |