Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-15 00:17:12 +00:00
parent d64d7878e4
commit 6fc8bca77b

View File

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