git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ftrace: avoid modifying kprobe'd records
[safe/jmp/linux-2.6]
/
kernel
/
cpuset.c
diff --git
a/kernel/cpuset.c
b/kernel/cpuset.c
index
bceb895
..
9fceb97
100644
(file)
--- a/
kernel/cpuset.c
+++ b/
kernel/cpuset.c
@@
-1037,8
+1037,8
@@
int current_cpuset_is_being_rebound(void)
static int update_relax_domain_level(struct cpuset *cs, s64 val)
{
- if (
(int)val < 0
)
-
val = -1
;
+ if (
val < -1 || val >= SD_LV_MAX
)
+
return -EINVAL
;
if (val != cs->relax_domain_level) {
cs->relax_domain_level = val;