summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-15 02:07:12 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-15 02:07:12 +0000
commitfdf2e68163f17d5441484d543d78d0bb0a2bb573 (patch)
tree2c99464dc741f9e1578bb03a56e01912913196cf /util
parent5d95d4dfe93f40ec00a2f0953747b06cd2af0a2a (diff)
set errno
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index d510a9ea..4cc35505 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -2087,7 +2087,7 @@ real_pread_pwrite:
do {
if (off != verified)
- return -1;
+ goto err_prw;
if (rw_type == IO_PREAD)
r = read(fd, mem, nrw);