util/nvmutil: fix check in command sanitizer

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-10 15:30:10 +00:00
parent 0b4e298cb1
commit b28076557b
+1 -1
View File
@@ -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");
}