hexagon: fix strncpy_from_user() error return
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 19 Aug 2016 01:16:49 +0000 (21:16 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 Nov 2016 01:01:38 +0000 (01:01 +0000)
commitd848857e80ab89474c7686d6a32d7ee594f0b706
tree099e309599bddb50e0ab1c4bc0fa6ee174f5806f
parentfd435487db729e9485f3edcd3963fcc23054195f
hexagon: fix strncpy_from_user() error return

commit f35c1e0671728d1c9abc405d05ef548b5fcb2fc4 upstream.

It's -EFAULT, not -1 (and contrary to the comment in there,
__strnlen_user() can return 0 - on faults).

Acked-by: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/hexagon/include/asm/uaccess.h