diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-14 07:26:45 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-14 07:28:06 +0000 |
| commit | bdd23b234b5c23495740e897035297314069d47e (patch) | |
| tree | cf9e78ab44ab7ab40771101f7527e27f85a46ca7 /util/nvmutil/nvmutil.c | |
| parent | fbc0a62ab090d1d009335a6f2abe3c8169c288e2 (diff) | |
nvmutil: fix rval in close_files
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 5 |
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 |
