

This releases the zone->resize_sem on the __add_pages 
error path.  

matt

Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
---

 memhotplug-dave/mm/memory_hotplug.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/memory_hotplug.c~N0-fixup_sem_handling_on_add_err_path mm/memory_hotplug.c
--- memhotplug/mm/memory_hotplug.c~N0-fixup_sem_handling_on_add_err_path	2004-10-08 00:15:09.000000000 -0700
+++ memhotplug-dave/mm/memory_hotplug.c	2004-10-08 00:15:09.000000000 -0700
@@ -64,7 +64,7 @@ int __add_section(struct zone *zone, uns
 	struct pglist_data *pgdat = zone->zone_pgdat;
 	struct page *memmap;
 	unsigned long base_pfn;
-	int i, err;
+	int i, err = 0;
 	unsigned long zone_end = zone->zone_start_pfn + zone->spanned_pages;
 	unsigned long nr_pages = PAGES_PER_SECTION;
 
_
