X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=security%2Fdevice_cgroup.c;h=d794abcc4b3b7e5e87173ba8ca45deca5b6d09d8;hb=3c03c46ac80ea7edc3b8f2ba85085de54aec15cd;hp=19ecc8de9e6bfd837e2589546fdfe49b04b23ed0;hpb=54e37b8dbe9a398f74cef313404bd2f1deca7853;p=~andy%2Flinux diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 19ecc8de9e6..d794abcc4b3 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c @@ -215,7 +215,9 @@ static void devcgroup_css_free(struct cgroup *cgroup) struct dev_cgroup *dev_cgroup; dev_cgroup = cgroup_to_devcgroup(cgroup); + mutex_lock(&devcgroup_mutex); dev_exception_clean(dev_cgroup); + mutex_unlock(&devcgroup_mutex); kfree(dev_cgroup); }