mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
no, break instead
in the last patch, i return, which then avoids resetting the offset. prw is very careful not to return early. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -2126,8 +2126,10 @@ real_pread_pwrite:
|
||||
else if (rw_type == IO_PWRITE)
|
||||
r = write(fd, mem, nrw);
|
||||
|
||||
if (rw_over_nrw(r, nrw) == -1)
|
||||
return -1;
|
||||
if (rw_over_nrw(r, nrw) == -1) {
|
||||
errno = EIO;
|
||||
break;
|
||||
}
|
||||
|
||||
} while (r == -1 &&
|
||||
(errno == try_err(loop_eintr, EINTR)
|
||||
|
||||
Reference in New Issue
Block a user