if (SCtmp->host_scribble) { kfree(SCtmp->host_scribble); SCtmp->host_scribble = NULL; } 
kfree(SCtmp->host_scribble); SCtmp->host_scribble = NULL; 
static int aha1542_bus_reset(Scsi_Cmnd * SCpnt){	int i;	/* 	 * This does a scsi reset for all devices on the bus.	 * In principle, we could also reset the 1542 - should	 * we do this?  Try this first, and we can add that later	 * if it turns out to be useful.	 */	outb(SCRST, CONTROL(SCpnt->device->host->io_port));	/*	 * Wait for the thing to settle down a bit.  Unfortunately	 * this is going to basically lock up the machine while we	 * wait for this to complete.  To be 100% correct, we need to	 * check for timeout, and if we are doing something like this	 * we are pretty desperate anyways.	 */	ssleep(4);	spin_lock_irq(SCpnt->device->host->host_lock);	WAIT(STATUS(SCpnt->device->host->io_port),	     STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF);	/*	 * Now try to pick up the pieces.  For all pending commands,	 * free any internal data structures, and basically clear things	 * out.  We do not try and restart any commands or anything - 	 * the strategy handler takes care of that crap.	 */	printk(KERN_WARNING "Sent BUS RESET to scsi host %d\n", SCpnt->device->host->host_no);	for (i = 0; i < AHA1542_MAILBOXES; i++) {		if (HOSTDATA(SCpnt->device->host)->SCint[i] != NULL) {			Scsi_Cmnd *SCtmp;			SCtmp = HOSTDATA(SCpnt->device->host)->SCint[i];			if (SCtmp->device->soft_reset) {				/*				 * If this device implements the soft reset option,				 * then it is still holding onto the command, and				 * may yet complete it.  In this case, we don't				 * flush the data.				 */				continue;			}			if (SCtmp->host_scribble) {				kfree(SCtmp->host_scribble);				SCtmp->host_scribble = NULL;			}			HOSTDATA(SCpnt->device->host)->SCint[i] = NULL;			HOSTDATA(SCpnt->device->host)->mb[i].status = 0;		}	}	spin_unlock_irq(SCpnt->device->host->host_lock);	return SUCCESS;fail:	spin_unlock_irq(SCpnt->device->host->host_lock);	return FAILED;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c9475cb0c358ff0dd473544280d92482df491913/aha1542.c/clean/drivers/scsi/aha1542.c