From: Yasunori Goto Date: Fri, 1 Jun 2007 07:46:53 +0000 (-0700) Subject: memory hotplug: fix unnecessary calling of init_currenty_empty_zone() X-Git-Tag: v2.6.22-rc4~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13466c8419c3ab3ccd5e905eef53ca49c6c201be;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed