SLUB: Fix index calculation in get_slab fls already returns the value + 1. No need to increment it. Signed-off-by: Christoph Lameter --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.22-rc4-mm2/mm/slub.c =================================================================== --- linux-2.6.22-rc4-mm2.orig/mm/slub.c 2007-06-23 12:03:19.000000000 -0700 +++ linux-2.6.22-rc4-mm2/mm/slub.c 2007-06-23 12:03:30.000000000 -0700 @@ -2556,7 +2556,7 @@ static struct kmem_cache *get_slab(size_ if (size > KMALLOC_MAX_SIZE) return NULL; - index = fls(size - 1) + 1; + index = fls(size - 1); } if ((flags & SLUB_DMA))