]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42d99952bd2572c1ab7933a6a9d1542ca66d37b8
treeb8e74d8a3aa9ac6939889487b8c46ce098c7d9f3
parentf8f860ececc438a8470f53624c260a592cf08f5c
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