aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slob.c b/mm/slob.c
index 0111e0dece93..45d4ca79933a 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -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);