lq = GET_LU_Q(ha, id, lun); if (!sp || !fcport || !lq) 
if (!sp || !fcport) 
qla2xxx_eh_bus_reset(struct scsi_cmnd *cmd){	scsi_qla_host_t *ha = to_qla_host(cmd->device->host);	os_tgt_t *tq = (os_tgt_t *) cmd->device->hostdata;	fc_port_t *fcport = tq->fcport;	os_lun_t *lq;	srb_t *sp;	int ret;	unsigned int id, lun;	unsigned long serial;	ret = FAILED;	id = cmd->device->id;	lun = cmd->device->lun;	serial = cmd->serial_number;	sp = (srb_t *) CMD_SP(cmd);	lq = GET_LU_Q(ha, id, lun);	if (!sp || !fcport || !lq)		return ret;	qla_printk(KERN_INFO, ha,	    "scsi(%ld:%d:%d): LOOP RESET ISSUED.\n", ha->host_no, id, lun);	spin_unlock_irq(ha->host->host_lock);	if (qla2x00_wait_for_hba_online(ha) != QLA_SUCCESS) {		DEBUG2(printk("%s failed:board disabled\n",__func__));		goto eh_bus_reset_done;	}	if (qla2x00_wait_for_loop_ready(ha) == QLA_SUCCESS) {		if (qla2x00_loop_reset(ha) == QLA_SUCCESS)			ret = SUCCESS;	}	if (ret == FAILED)		goto eh_bus_reset_done;	/* Waiting for our command in done_queue to be returned to OS.*/	if (cmd->device->host->eh_active)		if (!qla2x00_eh_wait_for_pending_commands(ha))			ret = FAILED;eh_bus_reset_done:	qla_printk(KERN_INFO, ha, "%s: reset %s\n", __func__,	    (ret == FAILED) ? "failed" : "succeded");	spin_lock_irq(ha->host->host_lock);	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/bdf796210e01145fd77bbb3ae644d04f982b6c3b/qla_os.c/buggy/drivers/scsi/qla2xxx/qla_os.c