diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-09 17:53:56 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-09 17:53:56 +0000 |
| commit | 61968ec2b99eae7cf33b216049b2ef64b1f34181 (patch) | |
| tree | 15cd889ebb1728bbc65aa3ad0f4e26deffbe90f2 /util/nvmutil | |
| parent | b69863e51f65d4c2a693f96f993be214a1c51d9f (diff) | |
util/nvmutil: explicitly reset file descriptors
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
| -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 ade8f431..ee1656ab 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1321,12 +1321,14 @@ close_files(void) if (gbe_fd > -1) { if (close(gbe_fd) == -1) err(-1, "%s: close failed", fname); + gbe_fd = -1; } #ifndef NVMUTIL_ARC4RANDOM_BUF if (urandom_fd > -1) { if (close(urandom_fd) == -1) err(-1, "%s: close failed", rname); + urandom_fd = -1; } #endif } |
