kernfs: Convert kernfs_path_from_node_locked() from strlcpy() to strscpy()
[linux-2.6-microblaze.git] / kernel / cgroup / cgroup-v1.c
index 76db6c6..9cb00eb 100644 (file)
@@ -802,7 +802,7 @@ void cgroup1_release_agent(struct work_struct *work)
                goto out_free;
 
        ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns);
-       if (ret < 0 || ret >= PATH_MAX)
+       if (ret < 0)
                goto out_free;
 
        argv[0] = agentbuf;