projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'topic/usb' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound...
[deliverable/linux.git]
/
kernel
/
sched.c
diff --git
a/kernel/sched.c
b/kernel/sched.c
index a3dff1f3f9b0c32070d3ade21f3d2da63708d099..6af210a7de70d394015617863ee303059c9dd4d6 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-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;
This page took
0.024995 seconds
and
5
git commands to generate.