cgroup: make css_for_each_descendant() and friends include the origin css in the...
[linux-2.6-block.git] / security / device_cgroup.c
index 9bf230aa28b09d5ec2ebf148879a62855de96163..c123628d3f848ee25497858a96c861a835f723d2 100644 (file)
@@ -456,7 +456,7 @@ static int propagate_exception(struct dev_cgroup *devcg_root,
                 * methods), and online ones are safe to access outside RCU
                 * read lock without bumping refcnt.
                 */
-               if (!is_devcg_online(devcg))
+               if (pos == &devcg_root->css || !is_devcg_online(devcg))
                        continue;
 
                rcu_read_unlock();