X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/b56061b04e0264f3b24f7450a3d5790437bb912a..58ceeb6bec8:/lib/syscall.c diff --git a/lib/syscall.c b/lib/syscall.c index 63239e097b13..2c6cd1b5c3ea 100644 --- a/lib/syscall.c +++ b/lib/syscall.c @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -11,6 +12,7 @@ static int collect_syscall(struct task_struct *target, long *callno, if (!try_get_task_stack(target)) { /* Task has no stack, so the task isn't in a syscall. */ + *sp = *pc = 0; *callno = -1; return 0; }