Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189089
b: refs/heads/master
c: 8bc037f
h: refs/heads/master
i:
  189087: d32a58d
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Ingo Molnar committed Mar 17, 2010
1 parent 076b8d8 commit 124dd92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c890692bf37671b5b78a1870d55d6d87e1c8a509
refs/heads/master: 8bc037fb89bb3104b9ae290d18c877624cd7d9cc
2 changes: 1 addition & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4912,7 +4912,7 @@ SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len,

ret = sched_getaffinity(pid, mask);
if (ret == 0) {
int retlen = min(len, cpumask_size());
size_t retlen = min_t(size_t, len, cpumask_size());

if (copy_to_user(user_mask_ptr, mask, retlen))
ret = -EFAULT;
Expand Down

0 comments on commit 124dd92

Please sign in to comment.