kernel/arch/mips/include/asm/syscall.h
.. .. @@ -38,7 +38,7 @@ 38 38 static inline long syscall_get_nr(struct task_struct *task, 39 39 struct pt_regs *regs) 40 40 { 41 - return current_thread_info()->syscall;41 + return task_thread_info(task)->syscall;42 42 } 43 43 44 44 static inline void mips_syscall_update_nr(struct task_struct *task,