mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +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)
|
else if (rw_type == IO_PWRITE)
|
||||||
r = write(fd, mem, nrw);
|
r = write(fd, mem, nrw);
|
||||||
|
|
||||||
if (rw_over_nrw(r, nrw) == -1)
|
if (rw_over_nrw(r, nrw) == -1) {
|
||||||
return -1;
|
errno = EIO;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
} while (r == -1 &&
|
} while (r == -1 &&
|
||||||
(errno == try_err(loop_eintr, EINTR)
|
(errno == try_err(loop_eintr, EINTR)
|
||||||
|
|||||||
Reference in New Issue
Block a user