From 9c825d50640fa6a7ed3ebdff6cc64fc3feeb7faa Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Thu, 6 Mar 2008 22:23:33 -0800 Subject: [PATCH] Fix issue in deactivate_slab with the zero pointer --- mm/slub.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 863be11..fcb0caa 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1459,7 +1459,7 @@ static void deactivate_slab(struct kmem_cache *s, struct kmem_cache_cpu *c) * to occur. */ freelist = get_freelist_ptr(c); - while (unlikely(!free)) { + while (unlikely(freelist)) { void **object; tail = 0; /* Hot objects. Put the slab first */ -- 1.5.4.1