diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 06:40:21 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 06:40:21 +0000 |
| commit | 1a8896b82d9032d0944bd8a5ea0a58c9b1cd3456 (patch) | |
| tree | 559e8c6ef0e409b041b263b5f72b3e92ae63dbc6 /util | |
| parent | 0d908923a3f19ac773fb0b0e632f829b743b92b1 (diff) | |
util/nvmutil: restore pad before reading to it
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index e162a56e..8e8f41cd 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1568,6 +1568,8 @@ check_written_part(size_t p) mem_offset = gbe_mem_offset(p, "pwrite"); file_offset = (off_t)gbe_file_offset(p, "pwrite"); + memset(pad, 0xff, sizeof(pad)); + r = rw_gbe_file_exact(gbe_fd, pad, gbe_rw_size, file_offset, IO_PREAD); |
