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);