powerpc/livepatch: return -ERRNO values in save_stack_trace_tsk_reliable()
authorJoe Lawrence <joe.lawrence@redhat.com>
Tue, 22 Jan 2019 15:57:24 +0000 (10:57 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Jan 2019 05:43:38 +0000 (16:43 +1100)
commit3de27dcf8121c2a710ab93dce23e0f5901c29783
tree75526224f75654bcee3d4c2de0d7a1adff67d1df
parent29a77bbb0cf2cea41fa46f8fa176f6cb1e3182c4
powerpc/livepatch: return -ERRNO values in save_stack_trace_tsk_reliable()

To match its x86 counterpart, save_stack_trace_tsk_reliable() should
return -EINVAL in cases that it is currently returning 1.  No caller is
currently differentiating non-zero error codes, but let's keep the
arch-specific implementations consistent.

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/stacktrace.c