Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] slab: remove wrongly placed BUG_ON

Init list is called with a list parameter that is not equal to the
cachep->nodelists entry under NUMA if more than one node exists. This is
fully legitimatei. One may want to populate the list fields before
switching nodelist pointers.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Christoph Lameter and committed by
Linus Torvalds
dcbd4ec4 ada26d41

-1
-1
mm/slab.c
··· 1328 1328 { 1329 1329 struct kmem_list3 *ptr; 1330 1330 1331 - BUG_ON(cachep->nodelists[nodeid] != list); 1332 1331 ptr = kmalloc_node(sizeof(struct kmem_list3), GFP_KERNEL, nodeid); 1333 1332 BUG_ON(!ptr); 1334 1333