Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asm-generic headers: add arch-specific __strnlen_user calling in uacc…
…ess.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>
- Loading branch information