aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 2360da991721..0d4865a50171 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -714,7 +714,7 @@ static int audit_set_feature(struct sk_buff *skb)
714 old_lock = af.lock & feature; 714 old_lock = af.lock & feature;
715 715
716 /* are we changing a locked feature? */ 716 /* are we changing a locked feature? */
717 if ((af.lock & feature) && (new_feature != old_feature)) { 717 if (old_lock && (new_feature != old_feature)) {
718 audit_log_feature_change(i, old_feature, new_feature, 718 audit_log_feature_change(i, old_feature, new_feature,
719 old_lock, new_lock, 0); 719 old_lock, new_lock, 0);
720 return -EPERM; 720 return -EPERM;