From: Heiko Carstens Date: Wed, 20 Feb 2013 12:59:26 +0000 (+0100) Subject: s390/uaccess: shorten strncpy_from_user/strnlen_user X-Git-Tag: v3.9-rc1~5^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7b788cd06a3080ebf0b2f5f2e008d4fda2b336e;p=pandora-kernel.git 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 Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed