apparmor: replace remaining BUG_ON() asserts with AA_BUG()
[sfrench/cifs-2.6.git] / security / apparmor / audit.c
index 0c81ff64993bfa59b9c908305c473bf3c4a4237b..87f40fa8c431c93fb63b61025d263fa9e11b86fd 100644 (file)
@@ -119,7 +119,7 @@ void aa_audit_msg(int type, struct common_audit_data *sa,
 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa,
             void (*cb) (struct audit_buffer *, void *))
 {
-       BUG_ON(!profile);
+       AA_BUG(!profile);
 
        if (type == AUDIT_APPARMOR_AUTO) {
                if (likely(!aad(sa)->error)) {