aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/smack/smack_lsm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 8825375cc031..185e2e73cd33 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -3615,9 +3615,8 @@ static int smack_audit_rule_match(u32 secid, u32 field, u32 op, void *vrule,
3615 struct smack_known *skp; 3615 struct smack_known *skp;
3616 char *rule = vrule; 3616 char *rule = vrule;
3617 3617
3618 if (!rule) { 3618 if (unlikely(!rule)) {
3619 audit_log(actx, GFP_ATOMIC, AUDIT_SELINUX_ERR, 3619 WARN_ONCE(1, "Smack: missing rule\n");
3620 "Smack: missing rule\n");
3621 return -ENOENT; 3620 return -ENOENT;
3622 } 3621 }
3623 3622