Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoor...
[sfrench/cifs-2.6.git] / arch / s390 / include / asm / syscall.h
index ab3407aa4fd8232ec32b3ff5e898f75f092b7170..f073292e9fdb133462c40eb3dbaa4877cb5c98b7 100644 (file)
@@ -79,10 +79,10 @@ static inline void syscall_set_arguments(struct task_struct *task,
        regs->orig_gpr2 = args[0];
 }
 
-static inline int syscall_get_arch(void)
+static inline int syscall_get_arch(struct task_struct *task)
 {
 #ifdef CONFIG_COMPAT
-       if (test_tsk_thread_flag(current, TIF_31BIT))
+       if (test_tsk_thread_flag(task, TIF_31BIT))
                return AUDIT_ARCH_S390;
 #endif
        return AUDIT_ARCH_S390X;