]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic headers: add arch-specific __strnlen_user calling in uaccess.h
authorGuanXuetao <gxt@mprc.pku.edu.cn>
Sat, 15 Jan 2011 10:08:09 +0000 (18:08 +0800)
committerGuanXuetao <gxt@mprc.pku.edu.cn>
Thu, 17 Mar 2011 01:19:05 +0000 (09:19 +0800)
commitd75aad40e881c28680ccb51129bff068fef96251
treeb6e1eb8c435cf14ce5626a33ab2da36aee9f791c
parentdb55965d96c29e05b9557b0096c8d6571340959a
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 <gxt@mprc.pku.edu.cn>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/uaccess.h