Commit 2b424f63 authored by David S. Miller's avatar David S. Miller

[SPARC64]: BUG on rediculious memcpy lengths.

Anything larger than MAX_INT is suspect.  Do this
for user copies too.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b500a3e3
......@@ -119,6 +119,9 @@
.globl FUNC_NAME
.type FUNC_NAME,#function
FUNC_NAME: /* %o0=dst, %o1=src, %o2=len */
srlx %o2, 31, %g2
cmp %g2, 0
tne %xcc, 5
PREAMBLE
mov %o0, %g5
cmp %o2, 0
......
......@@ -80,6 +80,9 @@
.globl FUNC_NAME
.type FUNC_NAME,#function
FUNC_NAME: /* %o0=dst, %o1=src, %o2=len */
srlx %o2, 31, %g2
cmp %g2, 0
tne %xcc, 5
PREAMBLE
mov %o0, %g5
cmp %o2, 0
......
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