diff options
| author | Vasily Gorbik <gor@linux.ibm.com> | 2026-07-08 12:02:14 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-07-15 17:35:42 +0200 |
| commit | 4bb06b60d982355e22647b3d12d6619419f8c1fa (patch) | |
| tree | f86e41c4ed03e2bfae46516cac5cb5e11528da80 /scripts/include | |
| parent | 7d5c2f679147859c1db97d9f66366ff16909abee (diff) | |
s390/checksum: Fix csum_partial() without vector facility
Currently csum_partial() calls csum_copy() with copy=false and dst=NULL.
On machines without the vector facility, csum_copy() falls back to
cksm(dst, ...), causing the checksum to be calculated from address zero
instead of the source buffer.
The VX implementation already checksums data loaded from src. Make the
fallback do the same by passing src to cksm().
Fixes: dcd3e1de9d17 ("s390/checksum: provide csum_partial_copy_nocheck()")
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/include')
0 files changed, 0 insertions, 0 deletions
