From 6fc8bca77bd1c54d792a50aea1d1b71af2374afe Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 15 Mar 2026 00:17:12 +0000 Subject: comment Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'util') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 690cf497..6fc5f4a7 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -2088,6 +2088,16 @@ real_pread_pwrite: if (!off_reset) goto err_prw; + /* + * Even if we allow to continue, + * we still need to reset the + * offset. If we can't, then + * we can't recover at all. + * + * However, we must preserve + * errno in that case, so + * just return immediately. + */ if (lseek_loop(fd, off, SEEK_SET, loop_eagain, loop_eintr) == (off_t)-1) return -1; -- cgit v1.2.1