diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-08 21:37:53 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-08 21:37:53 +0000 |
| commit | bd64d118f5471a6494f77096605dbf7b6aaad7ae (patch) | |
| tree | 348430a7f1f83fd32d89038b4bfbef72bc42037a /util/nvmutil/nvmutil.c | |
| parent | 61e7147505f4aae4f14cc7290f2759baa2b26f39 (diff) | |
util/nvmutil: fix check in set_err()
errno must never be negative
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 682d203d..f4178238 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -1378,7 +1378,7 @@ set_err(int x) { if (errno) return; - if (x) + if (x > 0) errno = x; else errno = ECANCELED; |
