util/nvmutil: extra overflow check in prw

do it at the very end

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-14 00:02:57 +00:00
parent 3704119436
commit ba2100fbf5

View File

@@ -1750,7 +1750,7 @@ try_rw_again:
}
errno = saved_errno;
return r;
return rw_over_ssize_max(r);
err_prw:
errno = EIO;