|
@@ -939,7 +939,7 @@ static void kmem_cache_open_debug_check(struct kmem_cache *s)
|
|
* Debugging or ctor may create a need to move the free
|
|
* Debugging or ctor may create a need to move the free
|
|
* pointer. Fail if this happens.
|
|
* pointer. Fail if this happens.
|
|
*/
|
|
*/
|
|
- if (s->size >= 65535 * sizeof(void *)) {
|
|
|
|
|
|
+ if (s->objsize >= 65535 * sizeof(void *)) {
|
|
BUG_ON(s->flags & (SLAB_RED_ZONE | SLAB_POISON |
|
|
BUG_ON(s->flags & (SLAB_RED_ZONE | SLAB_POISON |
|
|
SLAB_STORE_USER | SLAB_DESTROY_BY_RCU));
|
|
SLAB_STORE_USER | SLAB_DESTROY_BY_RCU));
|
|
BUG_ON(s->ctor);
|
|
BUG_ON(s->ctor);
|