Commit d084908c authored by Anton Blanchard's avatar Anton Blanchard

[SPARC64]: In sys32_sched_getaffinity, put mask back to user if ret > 0.

parent b744b4d8
...@@ -4336,7 +4336,7 @@ asmlinkage int sys32_sched_getaffinity(__kernel_pid_t32 pid, unsigned int len, ...@@ -4336,7 +4336,7 @@ asmlinkage int sys32_sched_getaffinity(__kernel_pid_t32 pid, unsigned int len,
&kernel_mask); &kernel_mask);
set_fs(old_fs); set_fs(old_fs);
if (ret == 0) { if (ret > 0) {
if (put_user(kernel_mask, user_mask_ptr)) if (put_user(kernel_mask, user_mask_ptr))
ret = -EFAULT; ret = -EFAULT;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment