summaryrefslogtreecommitdiffstats
path: root/arch/s390/lib/uaccess_std.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-02-20 13:59:26 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-02-28 09:37:07 +0100
commitd7b788cd06a3080ebf0b2f5f2e008d4fda2b336e (patch)
tree69441ca08ebf084277bc3d944bdde8d0ccdb8ecb /arch/s390/lib/uaccess_std.c
parentea4da6eae393dbbb26800700a38cf1b32c9109fd (diff)
downloadlinux-d7b788cd06a3080ebf0b2f5f2e008d4fda2b336e.tar.bz2
s390/uaccess: shorten strncpy_from_user/strnlen_user
Always stay within page boundaries when copying from user within strlen_user_mvcos()/strncpy_from_user_mvcos(). This allows to shorten the code a bit and may prevent unnecessary faults, since we copy quite large amounts of memory to kernel space. Also directly call the mvcos variants of copy_from_user() to avoid indirect branches. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/lib/uaccess_std.c')
0 files changed, 0 insertions, 0 deletions