summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-13 21:03:06 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 06:59:41 +0000
commit8071d7eaa8f08b00b86bd10179993ccc58c053b7 (patch)
tree404e85cd635c888d770dd9e1bace3c09342e089f /util
parent74077f99033a25127ac182e9464cc03488aeeca7 (diff)
util/nvmutil: cast rnum pointer check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 9fc49ad4..b1d24bdc 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -1744,7 +1744,7 @@ io_args(int fd, void *mem, size_t nrw,
goto err_io_args;
if (mem != (void *)pad
- && mem != rnum
+ && mem != (void *)rnum
&& (mem < (void *)buf || mem >= (void *)(buf + GBE_FILE_SIZE)))
goto err_io_args;