diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 07:24:37 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:41 +0000 |
| commit | 0867507fc8d8b8022aaa4ee17ab53c045ea8c7eb (patch) | |
| tree | 3bd00da12382be99c52167fc467d7a7f46252213 /util/nvmutil/nvmutil.c | |
| parent | 3fba84ad9585f109e458ccd574801f8df4200d2a (diff) | |
util/nvmutil: don't check write checksums on partial
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 6d7cb916..b0719f99 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1581,7 +1581,8 @@ check_written_part(size_t p) else if (memcmp(mem_offset, pad, gbe_rw_size) != 0) rw_check_bad_part[p] = io_err_gbe = 1; - if (rw_check_err_read[p]) + if (rw_check_err_read[p] || + rw_check_partial_read[p]) return; /* @@ -1620,7 +1621,8 @@ report_io_err_rw(void) "%s: pwrite: corrupt write on p%lu\n", fname, (ulong)p); - if (rw_check_err_read[p]) { + if (rw_check_err_read[p] || + rw_check_partial_read[p]) { fprintf(stderr, "%s: p%lu: skipped checksum verification " "(because read failed)\n", |
