aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/selinux/selinuxfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
index 1bfb40701b5a..ab7c9935c29a 100644
--- a/security/selinux/selinuxfs.c
+++ b/security/selinux/selinuxfs.c
@@ -970,7 +970,7 @@ out:
970 return ret; 970 return ret;
971err: 971err:
972 kfree(values); 972 kfree(values);
973 d_genocide(dir); 973 sel_remove_bools(dir);
974 ret = -ENOMEM; 974 ret = -ENOMEM;
975 goto out; 975 goto out;
976} 976}
@@ -1226,9 +1226,6 @@ static int sel_fill_super(struct super_block * sb, void * data, int silent)
1226 goto err; 1226 goto err;
1227 1227
1228 bool_dir = dentry; 1228 bool_dir = dentry;
1229 ret = sel_make_bools();
1230 if (ret)
1231 goto err;
1232 1229
1233 dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME); 1230 dentry = d_alloc_name(sb->s_root, NULL_FILE_NAME);
1234 if (!dentry) { 1231 if (!dentry) {