From: GuanXuetao Date: Sat, 15 Jan 2011 10:08:09 +0000 (+0800) Subject: asm-generic headers: add arch-specific __strnlen_user calling in uaccess.h X-Git-Tag: v2.6.39-rc1~454^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f509a9ef7af0d6ac852d49eb87ed2b9857821cc;p=pandora-kernel.git asm-generic headers: add arch-specific __strnlen_user calling in uaccess.h This patch changes the implementation of strnlen_user in include/asm-generic/uaccess.h. Originally, it calls strlen() function directly, which may not correctly handle the access of user space in most mmu-enabled architectures. New __strnlen_user is added for using as an architecture specific function. Signed-off-by: Guan Xuetao Reviewed-by: Arnd Bergmann --- Reading git-diff-tree failed