diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 1bf093dcffe03e9f97dc4a8e91b4a99bd6f11b32..0ea96bab91cced251de1b00e733f46c0e8c2e6d8 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -304,7 +304,7 @@ int __init audit_register_class(int class, unsigned *list) int audit_match_class(int class, unsigned syscall) { - if (unlikely(syscall >= AUDIT_BITMASK_SIZE * sizeof(__u32))) + if (unlikely(syscall >= AUDIT_BITMASK_SIZE * 32)) return 0; if (unlikely(class >= AUDIT_SYSCALL_CLASSES || !classes[class])) return 0;