From: Eric Paris Date: Fri, 10 Oct 2014 19:05:21 +0000 (-0400) Subject: audit: WARN if audit_rule_change called illegally X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=739c95038e68d364b01c0fc6f8fb8e47b1c1e979;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git audit: WARN if audit_rule_change called illegally Signed-off-by: Eric Paris --- 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;