Skip to content
Commit f35c1e06 authored by Al Viro's avatar Al Viro
Browse files

hexagon: fix strncpy_from_user() error return



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

Cc: stable@vger.kernel.org
Acked-by: default avatarRichard Kuo <rkuo@codeaurora.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3b8767a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment