diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-01-06 05:41:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-06 05:41:48 +0100 |
commit | 6df1c176994fab993f3112e3e4145a7d2bae64d0 (patch) | |
tree | bfbe02788e9e75be4e24285aa49539463a3539f3 /arch/sparc/lib | |
parent | sparc64: Fix Niagara2 perf event handling. (diff) | |
download | linux-6df1c176994fab993f3112e3e4145a7d2bae64d0.tar.xz linux-6df1c176994fab993f3112e3e4145a7d2bae64d0.zip |
sparc: copy_from_user() should not return -EFAULT
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Callers of copy_from_user() expect it to return the number of bytes
it could not copy. In no case it is supposed to return -EFAULT.
In case of a detected buffer overflow just return the requested
length. In addition one could think of a memset that would clear
the size of the target object.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib')
0 files changed, 0 insertions, 0 deletions