Files
oasis-linux-mirror/pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch
T
2026-03-03 14:36:39 -08:00

26 lines
705 B
Diff

From 85cec38f2339df05779ce4e85d80c7be8a63ae1e Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sat, 21 Jan 2023 17:52:40 -0800
Subject: [PATCH] Avoid arithmetic on void pointer
---
module/zcommon/zfs_fletcher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module/zcommon/zfs_fletcher.c b/module/zcommon/zfs_fletcher.c
index 133217f4b..c9f307445 100644
--- a/module/zcommon/zfs_fletcher.c
+++ b/module/zcommon/zfs_fletcher.c
@@ -584,7 +584,7 @@ fletcher_4_incremental_impl(boolean_t native, const void *buf, uint64_t size,
fletcher_4_incremental_combine(zcp, len, &nzc);
size -= len;
- buf += len;
+ buf = (char *)buf + len;
}
}
--
2.49.0