]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
powerpc/32: Fix csum_partial_copy_generic()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 2 Aug 2016 08:07:05 +0000 (10:07 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Aug 2016 04:52:45 +0000 (14:52 +1000)
commit1bc8b816cb8058c31f61fe78442f10a43209e582
tree8cfa034ebc9162343c8fdc80814a4d17d37aff5e
parentc6d2ee09c2fffd3efdd31be2b2811d081a45bb99
powerpc/32: Fix csum_partial_copy_generic()

Commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic()
based on copy_tofrom_user()") introduced a bug when destination
address is odd and initial csum is not null

In that (rare) case the initial csum value has to be rotated one byte
as well as the resulting value is

This patch also fixes related comments

Fixes: 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom_user()")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/checksum_32.S