Commit 0be8d73a authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

hexagon: fix strncpy_from_user() error return



commit f35c1e06 upstream.

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

Acked-by: default avatarRichard Kuo <rkuo@codeaurora.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df243b41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment