]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/syscall.c
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec
[mirror_ubuntu-bionic-kernel.git] / lib / syscall.c
index 63239e097b13a847fee8b5067d693cbbbf80a691..2c6cd1b5c3ea86668bc73196c4aa980c724ad34c 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/ptrace.h>
 #include <linux/sched.h>
+#include <linux/sched/task_stack.h>
 #include <linux/export.h>
 #include <asm/syscall.h>
 
@@ -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;
        }