]> 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)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 6 Oct 2016 02:40:20 +0000 (22:40 -0400)
commit591ca382baa0416352fd917bc33bf05491a270c6
tree243937dbbdda3805f7a7d72854036d37299bb4cc
parenta4bc5779f6e3ec3d1052d7b327aa76f26d73acaf
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>
arch/hexagon/include/asm/uaccess.h