kmemleak: Annotate false positive in init_section_page_cgroup()
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 10:54:14 +0000 (11:54 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 10:54:14 +0000 (11:54 +0100)
commit7952f98818d561ed0e11434a7a16acd9a7bae859
treeb8e74d8a3aa9ac6939889487b8c46ce098c7d9f3
parent815c4163b6c8ebf8152f42b0a5fd015cfdcedc78
kmemleak: Annotate false positive in init_section_page_cgroup()

The pointer to the page_cgroup table allocated in
init_section_page_cgroup() is stored in section->page_cgroup as (base -
pfn). Since this value does not point to the beginning or inside the
allocated memory block, kmemleak reports a false positive.

This was reported in bugzilla.kernel.org as #16297.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Adrien Dessemond <adrien.dessemond@gmail.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Andrew Morton <akpm@linux-foundation.org>
mm/page_cgroup.c