]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Sep 2016 21:49:39 +0000 (17:49 -0400)
commitf35c1e0671728d1c9abc405d05ef548b5fcb2fc4
tree6237bc7d599269b60e8051675eb7c583189555e9
parent3b8767a8f00cc6538ba6b1cf0f88502e2fd2eb90
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: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/hexagon/include/asm/uaccess.h