diff options
author | Ollie Wild <aaw@rincewind.tv> | 2006-09-27 07:46:24 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 07:46:24 +0200 |
commit | 24ab54cb49c099d691c68fdd1ac6a0c2f5177da4 (patch) | |
tree | a75607c77faadb28a994a056469165386406a8e4 /include/asm-sh/pci.h | |
parent | sh: Fix fatal oops in copy_user_page() on sh4a (SH7780). (diff) | |
download | linux-24ab54cb49c099d691c68fdd1ac6a0c2f5177da4.tar.xz linux-24ab54cb49c099d691c68fdd1ac6a0c2f5177da4.zip |
sh: Fix TCP payload csum bug in csum_partial_copy_generic().
There's a bug in the Hitachi SuperH csum_partial_copy_generic()
implementation. If the supplied length is 1 (and several alignment
conditions are met), the function immediately branches to label 4.
However, the assembly at label 4 expects the length to be stored in
register r2. Since this has not occurred, subsequent behavior is
undefined.
This can cause bad payload checksums in TCP connections.
I've fixed the problem by initializing register r2 prior to the branch
instruction.
Signed-off-by: Ollie Wild <aaw@rincewind.tv>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/pci.h')
0 files changed, 0 insertions, 0 deletions