From 0d5d8204e008a89a96654557d2a39563daa4580a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 15 Mar 2026 00:02:56 +0000 Subject: nvmutil: add missing check to io_args accidentally removed this in a rebase Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index bea8ea2c..0003d9b2 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -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: -- cgit v1.2.1