int error; 
struct pbe * p; 
static int swsusp_alloc(void){	int error;	pagedir_nosave = NULL;	nr_copy_pages = calc_nr(nr_copy_pages);	nr_copy_pages_check = nr_copy_pages;	pr_debug("suspend: (pages needed: %d + %d free: %d)\n",		 nr_copy_pages, PAGES_FOR_IO, nr_free_pages());	if (!enough_free_mem())		return -ENOMEM;	if (!enough_swap())		return -ENOSPC;	if (MAX_PBES < nr_copy_pages / PBES_PER_PAGE +	    !!(nr_copy_pages % PBES_PER_PAGE))		return -ENOSPC;	if (!(pagedir_save = alloc_pagedir(nr_copy_pages))) {		printk(KERN_ERR "suspend: Allocating pagedir failed.\n");		return -ENOMEM;	}	create_pbe_list(pagedir_save, nr_copy_pages);	pagedir_nosave = pagedir_save;	if ((error = alloc_image_pages())) {		printk(KERN_ERR "suspend: Allocating image pages failed.\n");		swsusp_free();		return error;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/351619baf9878731b4272fa10dda0f84f5582241/swsusp.c/buggy/kernel/power/swsusp.c