memcpy(key_iv, swsusp_header.key_iv, MAXKEY+MAXIV); memset(swsusp_header.key_iv, 0, MAXKEY+MAXIV);
static int check_sig(void){	int error;	memset(&swsusp_header, 0, sizeof(swsusp_header));	if ((error = bio_read_page(0, &swsusp_header)))		return error;	if (!memcmp(SWSUSP_SIG, swsusp_header.sig, 10)) {		memcpy(swsusp_header.sig, swsusp_header.orig_sig, 10);		/*		 * Reset swap signature now.		 */		error = bio_write_page(0, &swsusp_header);	} else { 		printk(KERN_ERR "swsusp: Suspend partition has wrong signature?\n");		return -EINVAL;	}	if (!error)		pr_debug("swsusp: Signature found, resuming\n");	return error;}