X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=kernel%2Fseccomp.c;h=811b4a86cdf6b5de2ed39c02d0efa71fd7409d7d;hb=e02c9b0d65a7493180db45320f82482c6ba8ea57;hp=3582eeb59893313577c7827ea1b55854ba4ed67d;hpb=2ed3b9103a2b5482f7e00811bda0976feb10ade0;p=linux-2.6-microblaze.git diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 3582eeb59893..811b4a86cdf6 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -148,7 +148,7 @@ static void populate_seccomp_data(struct seccomp_data *sd) unsigned long args[6]; sd->nr = syscall_get_nr(task, regs); - sd->arch = syscall_get_arch(); + sd->arch = syscall_get_arch(task); syscall_get_arguments(task, regs, args); sd->args[0] = args[0]; sd->args[1] = args[1]; @@ -331,7 +331,7 @@ static int is_ancestor(struct seccomp_filter *parent, * Expects sighand and cred_guard_mutex locks to be held. * * Returns 0 on success, -ve on error, or the pid of a thread which was - * either not in the correct seccomp mode or it did not have an ancestral + * either not in the correct seccomp mode or did not have an ancestral * seccomp filter. */ static inline pid_t seccomp_can_sync_threads(void) @@ -594,7 +594,7 @@ static void seccomp_init_siginfo(kernel_siginfo_t *info, int syscall, int reason info->si_code = SYS_SECCOMP; info->si_call_addr = (void __user *)KSTK_EIP(current); info->si_errno = reason; - info->si_arch = syscall_get_arch(); + info->si_arch = syscall_get_arch(current); info->si_syscall = syscall; }