diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 16:16:55 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 16:16:55 +0000 |
| commit | 94b89beef9ad44e0c384626679651ae57d432d46 (patch) | |
| tree | 0f5cdd83ed9e40a21e3ef7af64564053cebe670d | |
| parent | 0e295fbdc4478f6e694f8c12f5cdaf507047534c (diff) | |
util/nvmutil: fix if (PWRITE)
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 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); |
