scsi_id->sbp2_device_type_and_lun = SBP2_DEVICE_TYPE_LUN_UNINITIALIZED; 
scsi_id->sbp2_lun = 0; 
static struct scsi_id_instance_data *sbp2_alloc_device(struct unit_directory *ud){	struct sbp2scsi_host_info *hi;	struct Scsi_Host *scsi_host = NULL;	struct scsi_id_instance_data *scsi_id = NULL;	SBP2_DEBUG("sbp2_alloc_device");	scsi_id = kmalloc(sizeof(*scsi_id), GFP_KERNEL);	if (!scsi_id) {		SBP2_ERR("failed to create scsi_id");		goto failed_alloc;	}	memset(scsi_id, 0, sizeof(*scsi_id));	scsi_id->ne = ud->ne;	scsi_id->ud = ud;	scsi_id->speed_code = IEEE1394_SPEED_100;	scsi_id->max_payload_size = sbp2_speedto_max_payload[IEEE1394_SPEED_100];	atomic_set(&scsi_id->sbp2_login_complete, 0);	INIT_LIST_HEAD(&scsi_id->sbp2_command_orb_inuse);	INIT_LIST_HEAD(&scsi_id->sbp2_command_orb_completed);	INIT_LIST_HEAD(&scsi_id->scsi_list);	spin_lock_init(&scsi_id->sbp2_command_orb_lock);	scsi_id->sbp2_device_type_and_lun = SBP2_DEVICE_TYPE_LUN_UNINITIALIZED;	ud->device.driver_data = scsi_id;	hi = hpsb_get_hostinfo(&sbp2_highlevel, ud->ne->host);	if (!hi) {		hi = hpsb_create_hostinfo(&sbp2_highlevel, ud->ne->host, sizeof(*hi));		if (!hi) {			SBP2_ERR("failed to allocate hostinfo");			goto failed_alloc;		}		SBP2_DEBUG("sbp2_alloc_device: allocated hostinfo");		hi->host = ud->ne->host;		INIT_LIST_HEAD(&hi->scsi_ids);		/* Register our sbp2 status address space... */		hpsb_register_addrspace(&sbp2_highlevel, ud->ne->host, &sbp2_ops,					SBP2_STATUS_FIFO_ADDRESS,					SBP2_STATUS_FIFO_ADDRESS +					SBP2_STATUS_FIFO_ENTRY_TO_OFFSET(SBP2_MAX_UDS_PER_NODE+1));#ifdef CONFIG_IEEE1394_SBP2_PHYS_DMA		/* Handle data movement if physical dma is not		 * enabled/supportedon host controller */		hpsb_register_addrspace(&sbp2_highlevel, ud->ne->host, &sbp2_physdma_ops,					0x0ULL, 0xfffffffcULL);#endif	}	scsi_id->hi = hi;	list_add_tail(&scsi_id->scsi_list, &hi->scsi_ids);	/* Register our host with the SCSI stack. */	scsi_host = scsi_host_alloc(&scsi_driver_template,				    sizeof (unsigned long));	if (!scsi_host) {		SBP2_ERR("failed to register scsi host");		goto failed_alloc;	}	scsi_host->hostdata[0] = (unsigned long)scsi_id;	if (!scsi_add_host(scsi_host, &ud->device)) {		scsi_id->scsi_host = scsi_host;		return scsi_id;	}	SBP2_ERR("failed to add scsi host");	scsi_host_put(scsi_host);failed_alloc:	sbp2_remove_device(scsi_id);	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e309fc6d71d61bb0f049ab6d0da10c845da9513f/sbp2.c/buggy/drivers/ieee1394/sbp2.c