diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 15:30:10 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 15:30:10 +0000 |
| commit | b28076557b4c12965c15d6fad7c06e34c67f7921 (patch) | |
| tree | cd7b81fca272e159b91006f72759ae47c8b89f9c /util | |
| parent | 0b4e298cb1f9c1ded39737e13b43cc2307ed5ab2 (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.c | 2 |
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"); } |
