From: James Morris Fix copy & paste error in sel_make_avc_files(), removing a supurious call to d_genocide() in the error path. All of this will be cleaned up by kill_litter_super(). Signed-off-by: James Morris Acked-by: Stephen Smalley Signed-off-by: Andrew Morton --- security/selinux/selinuxfs.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff -puN security/selinux/selinuxfs.c~selinuxfs-cleanups-sel_make_avc_files security/selinux/selinuxfs.c --- devel/security/selinux/selinuxfs.c~selinuxfs-cleanups-sel_make_avc_files 2006-02-27 20:57:58.000000000 -0800 +++ devel-akpm/security/selinux/selinuxfs.c 2006-02-27 20:57:58.000000000 -0800 @@ -1151,22 +1151,19 @@ static int sel_make_avc_files(struct den dentry = d_alloc_name(dir, files[i].name); if (!dentry) { ret = -ENOMEM; - goto err; + goto out; } inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); if (!inode) { ret = -ENOMEM; - goto err; + goto out; } inode->i_fop = files[i].ops; d_add(dentry, inode); } out: return ret; -err: - d_genocide(dir); - goto out; } static int sel_make_dir(struct super_block *sb, struct dentry *dentry) _