* probably memory leak in sparse_index_init()? ---2.6.23/mm/sparse.c
@ 2007-11-14 4:24 Jacky(GuangXiang Lee)
0 siblings, 0 replies; only message in thread
From: Jacky(GuangXiang Lee) @ 2007-11-14 4:24 UTC (permalink / raw)
To: linux-mm
hi,
As following,after allocing ,then go out at finding mem_section not
null.sure?
static int __meminit sparse_index_init(unsigned long section_nr, int nid)
{
static DEFINE_SPINLOCK(index_init_lock);
unsigned long root = SECTION_NR_TO_ROOT(section_nr);
struct mem_section *section;
int ret = 0;
if (mem_section[root])
return -EEXIST;
section = sparse_index_alloc(nid);
/*
* This lock keeps two different sections from
* reallocating for the same index
*/
spin_lock(&index_init_lock);
if (mem_section[root]) {
ret = -EEXIST;
goto out;
}
mem_section[root] = section;
out:
spin_unlock(&index_init_lock);
return ret;
}
--
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] only message in thread
only message in thread, other threads:[~2007-11-14 4:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 4:24 probably memory leak in sparse_index_init()? ---2.6.23/mm/sparse.c Jacky(GuangXiang Lee)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox