diff options
author | Christoph Lameter <cl@linux.com> | 2012-07-10 19:31:05 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-07-12 03:13:22 -0400 |
commit | 44a8bdea19dff1abcdc4528e5f7e038b18ee5255 (patch) | |
tree | 25a923eecd8f9bc2674c305053f7b22cb21b90ee /mm/slob.c | |
parent | 737b719ed6569ffcd015fcdf3039dc7af47af877 (diff) |
slob: Fix early boot kernel crash
Commit fd3142a59af2012a7c5dc72ec97a4935ff1c5fc6 broke
slob since a piece of a change for a later patch slipped into
it.
Fengguang Wu writes:
The commit crashes the kernel w/o any dmesg output (the attached one is
created by the script as a summary for that run). This is very
reproducible in kvm for the attached config.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slob.c')
-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); |