diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-10 15:36:43 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-10 15:36:43 +0000 |
| commit | 318c0eb95bd08d8598e6767b738a18cca987c54e (patch) | |
| tree | 505c1d15832c3b01fa713d9b5fa96b40147e187b | |
| parent | 9b6b89250d8e74850ef04af3cb1dd56b08a69550 (diff) | |
Revert "util/nvmutil: fix check in command sanitizer"
This reverts commit b28076557b4c12965c15d6fad7c06e34c67f7921.
nope. the check was already correct before.
| -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 b339e608..2971eab4 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"); } |
