 if (!swsusp_resume_device) { if (!strlen(resume_file)) return -ENOENT; swsusp_resume_device = name_to_dev_t(resume_file); pr_debug("swsusp: Resume From Partition %s\n", resume_file); } else { pr_debug("swsusp: Resume From Partition %d:%d\n", MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device)); } 
int swsusp_check(void){	int error;	if (!swsusp_resume_device) {		if (!strlen(resume_file))			return -ENOENT;		swsusp_resume_device = name_to_dev_t(resume_file);		pr_debug("swsusp: Resume From Partition %s\n", resume_file);	} else {		pr_debug("swsusp: Resume From Partition %d:%d\n",			 MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));	}	resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ);	if (!IS_ERR(resume_bdev)) {		set_blocksize(resume_bdev, PAGE_SIZE);		error = check_suspend_image();		if (error)		    blkdev_put(resume_bdev);	} else		error = PTR_ERR(resume_bdev);	if (!error)		pr_debug("swsusp: resume file found\n");	else		pr_debug("swsusp: Error %d check for resume file\n", error);	return error;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/3efa147ad7608196639882ba4075b376f306fe16/swsusp.c/buggy/kernel/power/swsusp.c