Loading kernel/cgroup/cgroup.c +1 −1 Original line number Diff line number Diff line Loading @@ -2374,7 +2374,7 @@ int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen) ret = cgroup_path_ns_locked(cgrp, buf, buflen, &init_cgroup_ns); } else { /* if no hierarchy exists, everyone is in "/" */ ret = strlcpy(buf, "/", buflen); ret = strscpy(buf, "/", buflen); } spin_unlock_irq(&css_set_lock); Loading Loading
kernel/cgroup/cgroup.c +1 −1 Original line number Diff line number Diff line Loading @@ -2374,7 +2374,7 @@ int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen) ret = cgroup_path_ns_locked(cgrp, buf, buflen, &init_cgroup_ns); } else { /* if no hierarchy exists, everyone is in "/" */ ret = strlcpy(buf, "/", buflen); ret = strscpy(buf, "/", buflen); } spin_unlock_irq(&css_set_lock); Loading