nvmutil: add missing check to io_args

accidentally removed this in a rebase

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-15 00:02:56 +00:00
parent 21bf1e644e
commit 0d5d8204e0

View File

@@ -2150,6 +2150,9 @@ io_args(int fd, void *mem, size_t nrw,
if (((size_t)off + nrw) < (size_t)off)
goto err_io_args;
if (rw_type > IO_PWRITE)
goto err_io_args;
return 0;
err_io_args: