diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 07:24:37 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 07:24:37 +0000 |
| commit | fbc0a62ab090d1d009335a6f2abe3c8169c288e2 (patch) | |
| tree | d30c69c2dc7cab8b98537bc327d5547a5d899f3c /util/nvmutil/nvmutil.c | |
| parent | 90ed69474c77aa282c345b7709afd4dde17d9513 (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", |
