--- security/selinux/ss/sidtab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/selinux/ss/sidtab.h b/security/selinux/ss/sidtab.h index 292512792a70..4c46a48f8d7e 100644 --- a/security/selinux/ss/sidtab.h +++ b/security/selinux/ss/sidtab.h @@ -36,9 +36,9 @@ union sidtab_entry_inner { #define SIDTAB_INNER_SHIFT \ (SIDTAB_NODE_ALLOC_SHIFT - size_to_shift(sizeof(union sidtab_entry_inner))) - -#define SIDTAB_LEAF_ENTRIES (PAGE_SIZE / sizeof(struct sidtab_entry_leaf)) #define SIDTAB_INNER_ENTRIES ((size_t)1 << SIDTAB_INNER_SHIFT) +#define SIDTAB_LEAF_ENTRIES \ + (SIDTAB_NODE_ALLOC_SIZE / sizeof(struct sidtab_entry_leaf)) #define SIDTAB_MAX_BITS 31 /* limited to INT_MAX due to atomic_t range */ #define SIDTAB_MAX (((u32)1 << SIDTAB_MAX_BITS) - 1) -- 2.19.2