projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b587c
)
core: fix the reversed sanity check when setting StartupBlockIOWeight over dbus
author
Tejun Heo
<htejun@fb.com>
Mon, 23 May 2016 20:48:46 +0000
(16:48 -0400)
committer
Tejun Heo
<tj@kernel.org>
Mon, 23 May 2016 20:48:46 +0000
(16:48 -0400)
bus_cgroup_set_property() was rejecting if the input value was in range.
Reverse it.
src/core/dbus-cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/dbus-cgroup.c
b/src/core/dbus-cgroup.c
index eef1c47c14d18d875923513d312d8c97f4b38a09..76f07c550d39b51ac0d1dd342eea45399c6169ee 100644
(file)
--- a/
src/core/dbus-cgroup.c
+++ b/
src/core/dbus-cgroup.c
@@
-623,7
+623,7
@@
int bus_cgroup_set_property(
if (r < 0)
return r;
- if (CGROUP_BLKIO_WEIGHT_IS_OK(weight))
+ if (
!
CGROUP_BLKIO_WEIGHT_IS_OK(weight))
return sd_bus_error_set_errnof(error, EINVAL, "StartupBlockIOWeight value out of range");
if (mode != UNIT_CHECK) {