]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
csky/syscall_trace: Fixup return processing flow
authorGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 06:46:44 +0000 (14:46 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Mon, 22 Apr 2019 07:55:28 +0000 (15:55 +0800)
commita691f3334d58b833e41d56de1b9820e687edcd78
treea5da17a314196bf4a97eae43557754712f6d172f
parent1a23710c71bbfe2df10584afb9971b99c45e2576
csky/syscall_trace: Fixup return processing flow

The function tracehook_report_syscall_entry's return value is
__must_check attribute. We should add return processing flow in
ptrace.c and set the syscall number to -1 when failed just like
riscv's.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/include/asm/syscall.h
arch/csky/kernel/ptrace.c