diff options
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -939,7 +939,7 @@ static void kmem_cache_open_debug_check(struct kmem_cache *s) | |||
939 | * Debugging or ctor may create a need to move the free | 939 | * Debugging or ctor may create a need to move the free |
940 | * pointer. Fail if this happens. | 940 | * pointer. Fail if this happens. |
941 | */ | 941 | */ |
942 | if (s->size >= 65535 * sizeof(void *)) { | 942 | if (s->objsize >= 65535 * sizeof(void *)) { |
943 | BUG_ON(s->flags & (SLAB_RED_ZONE | SLAB_POISON | | 943 | BUG_ON(s->flags & (SLAB_RED_ZONE | SLAB_POISON | |
944 | SLAB_STORE_USER | SLAB_DESTROY_BY_RCU)); | 944 | SLAB_STORE_USER | SLAB_DESTROY_BY_RCU)); |
945 | BUG_ON(s->ctor); | 945 | BUG_ON(s->ctor); |