summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-14 16:16:55 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commitd34552b400aaacdbc3760d57a4c59a8206972bed (patch)
tree2a662dfaa9c6816367b62f1fade08ff844ab1c38
parent0612798ecf801e0ac407a008ff3120a9997e2d3f (diff)
util/nvmutil: fix if (PWRITE)
Signed-off-by: Leah Rowe <leah@libreboot.org>
-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 2f77d919..d605ac79 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1970,7 +1970,7 @@ real_pread_pwrite:
r = read(fd, mem, nrw);
#if defined(HAVE_REAL_PREAD_PWRITE) && \
HAVE_REAL_PREAD_PWRITE > 0
- else if (rw_type == IO_WRITE)
+ else if (rw_type == IO_PWRITE)
r = pwrite(fd, mem, nrw, off);
else if (rw_type == IO_PREAD)
r = pread(fd, mem, nrw, off);