diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-18 21:16:49 -0400 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2016-10-02 21:13:11 -0400 |
commit | 4661786b4e1350a84d705d6cdd2fea2ecf114ce2 (patch) | |
tree | b111c99f5c04ff5fa5ba98098974c962ded39a6f /arch/ia64 | |
parent | bd2f050b78f082d449b28a4a0724385eb29aaddb (diff) |
hexagon: fix strncpy_from_user() error return
[ Upstream commit f35c1e0671728d1c9abc405d05ef548b5fcb2fc4 ]
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: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions