diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 088e5c92de68..7dc8c5d9ec7a 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2597,9 +2597,7 @@ static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry, dentry->d_fsdata = cgrp; inc_nlink(parent->d_inode); rcu_assign_pointer(cgrp->dentry, dentry); - dget(dentry); } - dput(dentry); return error; }