linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [SLUB 1/5] Fix validation
@ 2007-04-13  1:36 Christoph Lameter
  2007-04-13  1:36 ` [SLUB 2/5] Add after object padding Christoph Lameter
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Christoph Lameter @ 2007-04-13  1:36 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, Christoph Lameter

Some parts of object validation will never occur because on_freelist
does return the wrong exit code for a NULL object.

Fix that.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.21-rc6/mm/slub.c
===================================================================
--- linux-2.6.21-rc6.orig/mm/slub.c	2007-04-12 15:06:54.000000000 -0700
+++ linux-2.6.21-rc6/mm/slub.c	2007-04-12 15:07:23.000000000 -0700
@@ -588,7 +588,7 @@ static int on_freelist(struct kmem_cache
 			s->objects - nr);
 		page->inuse = s->objects - nr;
 	}
-	return 0;
+	return search == NULL;
 }
 
 /*

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-13  1:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-13  1:36 [SLUB 1/5] Fix validation Christoph Lameter
2007-04-13  1:36 ` [SLUB 2/5] Add after object padding Christoph Lameter
2007-04-13  1:36 ` [SLUB 3/5] Remove object activities out of checking functions Christoph Lameter
2007-04-13  1:36 ` [SLUB 4/5] Resiliency fixups Christoph Lameter
2007-04-13  1:58   ` Christoph Lameter
2007-04-13  1:36 ` [SLUB 5/5] Resiliency test Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox