mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +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) {
|
||||
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) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user