From: Alexey Kardashevskiy Date: Thu, 14 Feb 2013 17:44:23 +0000 (+0000) Subject: powerpc: fixing ptrace_get_reg to return an error X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~66^2~72^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee4a3916614829914830bc4371358f4d4a63c4d9;p=pandora-kernel.git powerpc: fixing ptrace_get_reg to return an error Currently ptrace_get_reg returns error as a value what make impossible to tell whether it is a correct value or error code. The patch adds a parameter which points to the real return data and returns an error code. As get_user_msr() never fails and it is used in multiple places so it has not been changed by this patch. Signed-off-by: Alexey Kardashevskiy Acked-by: Michael Neuling Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed