diff options
Diffstat (limited to 'lib/syscall.c')
| -rw-r--r-- | lib/syscall.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/syscall.c b/lib/syscall.c index ba13e924c430..006e256d2264 100644 --- a/lib/syscall.c +++ b/lib/syscall.c @@ -68,13 +68,13 @@ static int collect_syscall(struct task_struct *target, struct syscall_info *info   */  int task_current_syscall(struct task_struct *target, struct syscall_info *info)  { -	long state;  	unsigned long ncsw; +	unsigned int state;  	if (target == current)  		return collect_syscall(target, info); -	state = target->state; +	state = READ_ONCE(target->__state);  	if (unlikely(!state))  		return -EAGAIN;  | 
