]> git.baikalelectronics.ru Git - 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)
commitca5f4bc198b450e8d5cef77bea86439a1cd5f2a4
tree8cfa034ebc9162343c8fdc80814a4d17d37aff5e
parentdbb7afb11b01bd2cded3e2d07028a1c0e160fa95
powerpc/32: Fix csum_partial_copy_generic()

Commit b359f29804964 ("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: b359f29804964 ("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