Commit 5ea72c77 authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by David S. Miller

arch/i386/lib/checksum.S: Handle zero length.

parent fd393e0a
......@@ -149,6 +149,8 @@ csum_partial:
30: subl $2, %ecx
ja 20b
je 32f
addl $2, %ecx
jz 80f
movzbl (%esi),%ebx # csumming 1 byte, 2-aligned
addl %ebx, %eax
adcl $0, %eax
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment