summaryrefslogtreecommitdiff
path: root/kernel/cgroup/cgroup-v1.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2020-03-12 16:44:18 -0400
committerTejun Heo <tj@kernel.org>2020-03-12 16:44:18 -0400
commita09833f7cdf45b9e85b975646287526fe352d08f (patch)
tree6dab94d434a96e134f5d3b9c3a0aebe5e7aaf657 /kernel/cgroup/cgroup-v1.c
parent9bd5910d7f3db2f65be139d2679dd9daa4a3419a (diff)
parent2e5383d7904e60529136727e49629a82058a5607 (diff)
Merge branch 'for-5.6-fixes' into for-5.7
Diffstat (limited to 'kernel/cgroup/cgroup-v1.c')
-rw-r--r--kernel/cgroup/cgroup-v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c
index 9a6f060cbf51..f2d7cea86ffe 100644
--- a/kernel/cgroup/cgroup-v1.c
+++ b/kernel/cgroup/cgroup-v1.c
@@ -783,7 +783,7 @@ void cgroup1_release_agent(struct work_struct *work)
pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
agentbuf = kstrdup(cgrp->root->release_agent_path, GFP_KERNEL);
- if (!pathbuf || !agentbuf)
+ if (!pathbuf || !agentbuf || !strlen(agentbuf))
goto out;
spin_lock_irq(&css_set_lock);