]> git.ipfire.org Git - people/arne_f/kernel.git/commit - security/device_cgroup.c
device_cgroup: use css_has_online_children() instead of has_children()
authorTejun Heo <tj@kernel.org>
Fri, 16 May 2014 17:22:52 +0000 (13:22 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 16 May 2014 17:22:52 +0000 (13:22 -0400)
commit7a3bb24f7c5ceebad19b12b66fd832a27a7e90df
treefc1d5735096c2d0012f9a1e3235279397a7011b5
parentf3d4650015301d1c880df4523f7e7ef320a38aab
device_cgroup: use css_has_online_children() instead of has_children()

devcgroup_update_access() wants to know whether there are child
cgroups which are online and visible to userland and has_children()
may return false positive.  Replace it with css_has_online_children().

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
security/device_cgroup.c