summaryrefslogtreecommitdiff
path: root/pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch')
-rw-r--r--pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch b/pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch
new file mode 100644
index 00000000..c6309370
--- /dev/null
+++ b/pkg/zfs/patch/0010-Avoid-arithmetic-on-void-pointer.patch
@@ -0,0 +1,25 @@
+From dad6fa581122eaf3eb5c65839a3fd294887ba139 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 619ddef02..a99865b2a 100644
+--- a/module/zcommon/zfs_fletcher.c
++++ b/module/zcommon/zfs_fletcher.c
+@@ -581,7 +581,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.37.3
+