From: Michael Ellerman Date: Thu, 23 Jul 2015 10:21:04 +0000 (+1000) Subject: powerpc: Don't negate error in syscall_set_return_value() X-Git-Tag: omap-for-v4.3/fixes-rc1~100^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1a3702a65c1a6511e4c95ecb3770dfdf235bcf;p=pandora-kernel.git powerpc: Don't negate error in syscall_set_return_value() Currently the only caller of syscall_set_return_value() is seccomp filter, which is not enabled on powerpc. This means we have not noticed that our implementation of syscall_set_return_value() negates error, even though the value passed in is already negative. So remove the negation in syscall_set_return_value(), and expect the caller to do it like all other implementations do. Also add a comment about the ccr handling. Signed-off-by: Michael Ellerman Reviewed-by: Kees Cook --- Reading git-diff-tree failed