]> git.baikalelectronics.ru Git - kernel.git/commit
memory hotplug: fix unnecessary calling of init_currenty_empty_zone()
authorYasunori Goto <y-goto@jp.fujitsu.com>
Fri, 1 Jun 2007 07:46:53 +0000 (00:46 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 1 Jun 2007 15:18:29 +0000 (08:18 -0700)
commitc0090e581f333426b0fb3f847d5ac20e97411ad2
treee39805fa48c00af09b76e0fc6a3a23b97a8b364e
parent2b18951ef4f4fc741191c6b0691eeafae10f8825
memory hotplug: fix unnecessary calling of init_currenty_empty_zone()

zone->present_pages is updated in online_pages().  But, __add_zone() can be
called twice or more before calling online_pages().  So,
init_currenty_empty_zone() can be called unnecessary times.  It is cause of
memory leak of zone's wait_table.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c