Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189663
b: refs/heads/master
c: d620a7c
h: refs/heads/master
i:
  189661: 9ec3e32
  189659: 048b2e0
  189655: 1bc4796
  189647: 067c1f0
  189631: 772f4b2
v: v3
  • Loading branch information
Linus Torvalds committed Apr 8, 2010
1 parent 2af7142 commit 24c9ab3
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: 45c4d015a92f72ec47acd0c7557abdc0c8a6499d
refs/heads/master: d620a7cf05d4f12f5bbb1060d766e8139ab31458
2 changes: 1 addition & 1 deletion trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -4903,7 +4903,7 @@ SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len,
int ret;
cpumask_var_t mask;

if (len < nr_cpu_ids)
if ((len * BITS_PER_BYTE) < nr_cpu_ids)
return -EINVAL;
if (len & (sizeof(unsigned long)-1))
return -EINVAL;
Expand Down

0 comments on commit 24c9ab3

Please sign in to comment.