mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-24 21:54:11 +02:00
util/nvmutil: properly use rc in rw_File_exact
subtract and add iteratively Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -1408,7 +1408,7 @@ rw_file_exact(int fd, uint8_t *mem, size_t len,
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (rc < len) {
|
while (rc < len) {
|
||||||
rval = do_rw(fd, mem, len, off, rw_type);
|
rval = do_rw(fd, mem + rc, len - rc, off + rc, rw_type);
|
||||||
|
|
||||||
if (rval < 0 && errno == EINTR) {
|
if (rval < 0 && errno == EINTR) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user