Skip to content

Commit

Permalink
This was unstaged and I think it fixes something
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Mar 8, 2020
1 parent e43c390 commit ab850b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ int_t sys_get_robust_list(pid_t_ pid, addr_t robust_list_ptr, addr_t len_ptr) {

lock(&pids_lock);
struct task *task = pid_get_task(pid);
unlock(&pids_lock);
if (task != current)
return _EPERM;
unlock(&pids_lock);

if (user_put(robust_list_ptr, current->robust_list))
return _EFAULT;
Expand Down

0 comments on commit ab850b9

Please sign in to comment.