aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLai Jiangshan <[email protected]>2008-06-05 22:46:32 -0700
committerLinus Torvalds <[email protected]>2008-06-06 11:29:11 -0700
commit37340746a66e5e7feed5945f28cb75d90a8fd9f6 (patch)
treeb056132aad9eab38886b7359797302cbeeabc3fa /include/linux
parentaae8679b0ebcaa92f99c1c3cb0cd651594a43915 (diff)
cpusets: fix bug when adding nonexistent cpu or mem
Adding a nonexistent cpu to a cpuset will be omitted quietly. It should return -EINVAL. Example: (real_nr_cpus <= 4 < NR_CPUS or cpu#4 was just offline) # cat cpus 0-1 # /bin/echo 4 > cpus # /bin/echo $? 0 # cat cpus # The same occurs when add a nonexistent mem. This patch will fix this bug. And when *buf == "", the check is unneeded. Signed-off-by: Lai Jiangshan <[email protected]> Acked-by: Paul Jackson <[email protected]> Cc: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions