diff options
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r-- | security/selinux/avc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index da8caf10ef97..e4396a89edc6 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -217,6 +217,8 @@ static void avc_dump_query(struct audit_buffer *ab, u32 ssid, u32 tsid, u16 tcla | |||
217 | audit_log_format(ab, " tcontext=%s", scontext); | 217 | audit_log_format(ab, " tcontext=%s", scontext); |
218 | kfree(scontext); | 218 | kfree(scontext); |
219 | } | 219 | } |
220 | |||
221 | BUG_ON(tclass >= ARRAY_SIZE(class_to_string) || !class_to_string[tclass]); | ||
220 | audit_log_format(ab, " tclass=%s", class_to_string[tclass]); | 222 | audit_log_format(ab, " tclass=%s", class_to_string[tclass]); |
221 | } | 223 | } |
222 | 224 | ||