hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/mips/include/asm/syscall.h
....@@ -38,7 +38,7 @@
3838 static inline long syscall_get_nr(struct task_struct *task,
3939 struct pt_regs *regs)
4040 {
41
- return current_thread_info()->syscall;
41
+ return task_thread_info(task)->syscall;
4242 }
4343
4444 static inline void mips_syscall_update_nr(struct task_struct *task,