 if ((sscanf(buf, "%d", &val) != 1) || (val != 1)) return -EINVAL; 
lpfc_issue_lip (struct class_device *cdev, const char *buf, size_t count){	struct Scsi_Host *host = class_to_shost(cdev);	struct lpfc_hba *phba = (struct lpfc_hba *) host->hostdata[0];	int val = 0;	LPFC_MBOXQ_t *pmboxq;	int mbxstatus = MBXERR_ERROR;	if ((sscanf(buf, "%d", &val) != 1) ||	    (val != 1))		return -EINVAL;	if ((phba->fc_flag & FC_OFFLINE_MODE) ||	    (phba->hba_state != LPFC_HBA_READY))		return -EPERM;	pmboxq = mempool_alloc(phba->mbox_mem_pool,GFP_KERNEL);	if (!pmboxq)		return -ENOMEM;	memset((void *)pmboxq, 0, sizeof (LPFC_MBOXQ_t));	lpfc_init_link(phba, pmboxq, phba->cfg_topology, phba->cfg_link_speed);	mbxstatus = lpfc_sli_issue_mbox_wait(phba, pmboxq, phba->fc_ratov * 2);	if (mbxstatus == MBX_TIMEOUT)		pmboxq->mbox_cmpl = lpfc_sli_def_mbox_cmpl;	else		mempool_free( pmboxq, phba->mbox_mem_pool);	if (mbxstatus == MBXERR_ERROR)		return -EIO;	return strlen(buf);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/91ca7b01ecc916632202180569a7ddbfccfc3f05/lpfc_attr.c/buggy/drivers/scsi/lpfc/lpfc_attr.c