aboutsummaryrefslogtreecommitdiff
path: root/arch/hexagon/mm/Makefile
diff options
context:
space:
mode:
authorGravatar Arnd Bergmann <arnd@arndb.de> 2020-01-16 15:58:41 +0100
committerGravatar Arnd Bergmann <arnd@arndb.de> 2021-07-23 14:40:00 +0200
commit2820cfdc08178c55efa1c0fa402f082ef09bfe70 (patch)
tree41a09cdb09e78200e39af196dff143a977464936 /arch/hexagon/mm/Makefile
parenth8300: remove stale strncpy_from_user (diff)
downloadlinux-2820cfdc08178c55efa1c0fa402f082ef09bfe70.tar.gz
linux-2820cfdc08178c55efa1c0fa402f082ef09bfe70.tar.bz2
linux-2820cfdc08178c55efa1c0fa402f082ef09bfe70.zip
hexagon: use generic strncpy/strnlen from_user
Remove the hexagon implementation of strncpy/strnlen and instead use the generic version. The hexagon version reads the data twice for strncpy() by doing an extra strnlen(), and it apparently lacks a check for user_addr_max(). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/hexagon/mm/Makefile')
-rw-r--r--arch/hexagon/mm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/hexagon/mm/Makefile b/arch/hexagon/mm/Makefile
index 893838499591..49911a906fd0 100644
--- a/arch/hexagon/mm/Makefile
+++ b/arch/hexagon/mm/Makefile
@@ -4,4 +4,4 @@
#
obj-y := init.o ioremap.o uaccess.o vm_fault.o cache.o
-obj-y += copy_to_user.o copy_from_user.o strnlen_user.o vm_tlb.o
+obj-y += copy_to_user.o copy_from_user.o vm_tlb.o