summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/auditfilter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index 4a11697cf5b8..4419d1fbcad1 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -1085,7 +1085,8 @@ int audit_rule_change(int type, __u32 portid, int seq, void *data,
audit_free_rule(entry);
break;
default:
- return -EINVAL;
+ err = -EINVAL;
+ WARN_ON(1);
}
return err;