diff options
author | Tejun Heo <htejun@fb.com> | 2016-05-23 16:48:46 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-05-23 16:48:46 -0400 |
commit | 6fb09269769634df1096663ce90fac47585eb63a (patch) | |
tree | 3d36052d7a07c0ec4d44d0295364b70de99b7181 /src/core | |
parent | 21b587cfd903722eef136aef9090882ad098334a (diff) |
core: fix the reversed sanity check when setting StartupBlockIOWeight over dbus
bus_cgroup_set_property() was rejecting if the input value was in range.
Reverse it.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/dbus-cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c index eef1c47c14..76f07c550d 100644 --- 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) { |