diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 04:06:29 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 04:06:29 +0000 |
| commit | 05b39d2ff23398026168f2e866201ae7e009330d (patch) | |
| tree | a3bee893f6bd5b711937de0c88608a5fc9ea3553 | |
| parent | 55564d40641825cd117d14ae31ac2145f89f5a7d (diff) | |
util/nvmutil: set EIO on bad memcmp
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index d08b27fc..2f6de8aa 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1563,7 +1563,7 @@ verify_gbe_bin_write(size_t p) fname, (ulong)p); if (memcmp(mem_offset, pad, gbe_rw_size) != 0) - err(errno, "%s: pwrite: corrupt write on part %lu", + err(EIO, "%s: pwrite: corrupt write on part %lu", fname, (ulong)p); } |
