mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
util/nvmutil: fix check in command sanitizer
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -598,7 +598,7 @@ sanitize_command_index(size_t c)
|
|||||||
command[c].flags != O_RDWR)
|
command[c].flags != O_RDWR)
|
||||||
err(EINVAL, "invalid cmd.flags setting");
|
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");
|
err(EINVAL, "some rw type integers are the same");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user