mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
hexagon: fix strncpy_from_user() error return
commit f35c1e0671 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>
This commit is contained in:
parent
bfc7cbee2d
commit
e2a1890b68
1 changed files with 2 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue