From: Al Viro Date: Fri, 19 Aug 2016 01:16:49 +0000 (-0400) Subject: hexagon: fix strncpy_from_user() error return X-Git-Tag: v3.2.84~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d848857e80ab89474c7686d6a32d7ee594f0b706;p=pandora-kernel.git hexagon: fix strncpy_from_user() error return commit f35c1e0671728d1c9abc405d05ef548b5fcb2fc4 upstream. It's -EFAULT, not -1 (and contrary to the comment in there, __strnlen_user() can return 0 - on faults). Acked-by: Richard Kuo Signed-off-by: Al Viro Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed