summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-10 15:30:10 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-10 15:30:10 +0000
commitb28076557b4c12965c15d6fad7c06e34c67f7921 (patch)
treecd7b81fca272e159b91006f72759ae47c8b89f9c /util
parent0b4e298cb1f9c1ded39737e13b43cc2307ed5ab2 (diff)
util/nvmutil: fix check in command sanitizer
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index be97a173..49902814 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -598,7 +598,7 @@ sanitize_command_index(size_t c)
command[c].flags != O_RDWR)
err(EINVAL, "invalid cmd.flags setting");
- if (!((PLESEN > LESEN) && (SCHREIB > PLESEN) && (PSCHREIB > SCHREIB)))
+ if (!((PLESEN > LESEN) || (SCHREIB > PLESEN) || (PSCHREIB > SCHREIB)))
err(EINVAL, "some rw type integers are the same");
}