diff options
author | Tejun Heo <tj@kernel.org> | 2020-03-12 23:44:18 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2020-03-12 23:44:18 +0300 |
commit | a09833f7cdf45b9e85b975646287526fe352d08f (patch) | |
tree | 6dab94d434a96e134f5d3b9c3a0aebe5e7aaf657 /kernel/cgroup/cgroup-v1.c | |
parent | 9bd5910d7f3db2f65be139d2679dd9daa4a3419a (diff) | |
parent | 2e5383d7904e60529136727e49629a82058a5607 (diff) | |
download | linux-a09833f7cdf45b9e85b975646287526fe352d08f.tar.xz |
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.c | 2 |
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); |