]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Sep 2016 09:14:34 +0000 (11:14 +0200)
commita85bf48e05efd12abccc475f987204caef459be4
tree53e24ac277dbef3224fd4710b081e8725b980154
parent49e361884efedb0786751217b0da7f78c263265e
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: Jiri Slaby <jslaby@suse.cz>
arch/hexagon/include/asm/uaccess.h