diff options
| author | Michael Forney <mforney@mforney.org> | 2023-01-17 13:10:48 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2023-01-21 18:02:46 -0800 |
| commit | 6b7db809b530eee3052f73377c5b0aad13a0b963 (patch) | |
| tree | 317ecefa6441d49448dde7a43d4bdb761c3d98a0 /pkg/zfs/patch/0011-Avoid-arithmetic-on-void-pointer.patch | |
| parent | f70b4bb807afbdaccc1daab13b8ff24459c8dfa5 (diff) | |
Add zfs 2.1.7
Diffstat (limited to 'pkg/zfs/patch/0011-Avoid-arithmetic-on-void-pointer.patch')
| -rw-r--r-- | pkg/zfs/patch/0011-Avoid-arithmetic-on-void-pointer.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/zfs/patch/0011-Avoid-arithmetic-on-void-pointer.patch b/pkg/zfs/patch/0011-Avoid-arithmetic-on-void-pointer.patch new file mode 100644 index 00000000..662c4b11 --- /dev/null +++ b/pkg/zfs/patch/0011-Avoid-arithmetic-on-void-pointer.patch @@ -0,0 +1,25 @@ +From 8a2689c718e4fdf96a5b73e4095866ddf4826135 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 7a9de4a43..2faee46fe 100644 +--- a/module/zcommon/zfs_fletcher.c ++++ b/module/zcommon/zfs_fletcher.c +@@ -569,7 +569,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 + |
