summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-02-10 02:53:10 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-02-10 02:57:45 +0100
commit5c72face73e89610a5b926c42fc8e0223bf546a2 (patch)
treefce3c8e2aeec41387c1f0783cc616c644d22626b /src
parent1b73da108b5ff27bae677de146cb51cb5bbfd4ce (diff)
cgroup: fix inverted condition
A bug was introduced in acb14d3 "cgroup: when getting cgroup empty notifications, always search up the tree". When the given cgroup is found the hashmap, we should be happy and return it, not go looking up the tree for another one. Fixes the hanging NetworkManager on shutdown for me.
Diffstat (limited to 'src')
-rw-r--r--src/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgroup.c b/src/cgroup.c
index 182dd59eec..1f6139e25f 100644
--- a/src/cgroup.c
+++ b/src/cgroup.c
@@ -364,7 +364,7 @@ int cgroup_bonding_get(Manager *m, const char *cgroup, CGroupBonding **bonding)
assert(bonding);
b = hashmap_get(m->cgroup_bondings, cgroup);
- if (!b) {
+ if (b) {
*bonding = b;
return 1;
}