]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cgroup: use strlcpy() instead of strscpy() to avoid spurious warning
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Dec 2017 13:09:47 +0000 (05:09 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 15 Dec 2017 13:09:47 +0000 (05:09 -0800)
commit50034ed49645463a16327cad05694e201e6b4126
tree0b79f9e253859188ce5914aa22c4c81eefcc79d3
parente7fd37ba12170cc414be8b639dfc2c5f7172fac2
cgroup: use strlcpy() instead of strscpy() to avoid spurious warning

As long as cft->name is guaranteed to be NUL-terminated, using strlcpy() would
work just as well and avoid that warning, so the change below could be folded
into that commit.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c