Re: [PATCH 2.6.28-rc5 07/11] kmemleak: Remove some of the kmemleakfalse positives

From: Ingo Molnar
Date: Thu Nov 20 2008 - 07:09:29 EST



* Catalin Marinas <catalin.marinas@xxxxxxx> wrote:

> for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) {
> vc_cons[currcons].d = vc = alloc_bootmem(sizeof(struct vc_data));
> + /* kmemleak does not track the memory allocated via
> + * alloc_bootmem() but this block contains pointers to
> + * other blocks allocated via kmalloc */
> + memleak_alloc(vc, sizeof(struct vc_data), 1);

Comment style - and that is true for other bits of your patchset too.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/