summaryrefslogtreecommitdiff
path: root/util/nvmutil
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-14 07:26:45 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commitcaebecf6c6e39fce0dba6e07b5150e6f9fb0ad2a (patch)
tree7f6bed4665c6965d7dbf558301212d668b5d6261 /util/nvmutil
parent0867507fc8d8b8022aaa4ee17ab53c045ea8c7eb (diff)
nvmutil: fix rval in close_files
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
-rw-r--r--util/nvmutil/nvmutil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index b0719f99..35ea6757 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -2024,7 +2024,10 @@ close_files(void)
if (saved_errno)
errno = saved_errno;
- return -(close_err_gbe | close_err_rand);
+ if (close_err_gbe || close_err_rand)
+ return -1;
+
+ return 0;
}
static void