diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 16:17:33 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 16:17:33 +0000 |
| commit | 1403bdf1cc5e3265de78f0b79ae2e3d8c1c3931a (patch) | |
| tree | 5f34b2cbf2120dbbcb4d2b77a9cd47e5b3dc7767 | |
| parent | f0240df2291fa8aae43f395e66957e1007ce25be (diff) | |
util/nvmutil: re-add EINTR loop check on rw
accidentally removed it during re-factor
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | util/nvmutil/nvmutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 0fd9495a..419a51bb 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1445,6 +1445,9 @@ rw_file_exact(int fd, uint8_t *mem, size_t len, continue; } + if (rval < 0 && errno == EINTR) + continue; + set_err_if_unset(EIO); return -1; } |
