diff options
-rw-r--r-- | mm/slob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -518,7 +518,7 @@ struct kmem_cache *__kmem_cache_create(const char *name, size_t size, | |||
518 | 518 | ||
519 | if (c) { | 519 | if (c) { |
520 | c->name = name; | 520 | c->name = name; |
521 | c->size = c->object_size; | 521 | c->size = size; |
522 | if (flags & SLAB_DESTROY_BY_RCU) { | 522 | if (flags & SLAB_DESTROY_BY_RCU) { |
523 | /* leave room for rcu footer at the end of object */ | 523 | /* leave room for rcu footer at the end of object */ |
524 | c->size += sizeof(struct slob_rcu); | 524 | c->size += sizeof(struct slob_rcu); |