aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/apparmor/policy.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c
index f4ee72b44de4..0f345c4dee5f 100644
--- a/security/apparmor/policy.c
+++ b/security/apparmor/policy.c
@@ -1156,14 +1156,12 @@ ssize_t aa_remove_profiles(char *fqname, size_t size)
1156 if (fqname[0] == ':') { 1156 if (fqname[0] == ':') {
1157 char *ns_name; 1157 char *ns_name;
1158 name = aa_split_fqname(fqname, &ns_name); 1158 name = aa_split_fqname(fqname, &ns_name);
1159 if (ns_name) { 1159 /* released below */
1160 /* released below */ 1160 ns = aa_find_namespace(root, ns_name);
1161 ns = aa_find_namespace(root, ns_name); 1161 if (!ns) {
1162 if (!ns) { 1162 info = "namespace does not exist";
1163 info = "namespace does not exist"; 1163 error = -ENOENT;
1164 error = -ENOENT; 1164 goto fail;
1165 goto fail;
1166 }
1167 } 1165 }
1168 } else 1166 } else
1169 /* released below */ 1167 /* released below */