patch-2.3.14 linux/drivers/scsi/mca_53c9x.c
Next file: linux/drivers/scsi/ncr53c8xx.c
Previous file: linux/drivers/scsi/mac_scsi.c
Back to the patch index
Back to the overall index
-  Lines: 27
 -  Date:
Wed Aug 18 10:00:52 1999
 -  Orig file: 
v2.3.13/linux/drivers/scsi/mca_53c9x.c
 -  Orig date: 
Fri Dec 18 10:12:25 1998
 
diff -u --recursive --new-file v2.3.13/linux/drivers/scsi/mca_53c9x.c linux/drivers/scsi/mca_53c9x.c
@@ -156,6 +156,8 @@
 			 "NCR 53c9x SCSI", esp_intr))
 			{
 				printk("Unable to request IRQ %d.\n", esp->irq);
+				esp_deallocate(esp);
+				unregister_scsi(esp->ehost);
 				return 0;
 			}
 
@@ -163,6 +165,8 @@
 				printk("Unable to request DMA channel %d.\n",
 				 esp->dma);
 				free_irq(esp->irq, esp_intr);
+				esp_deallocate(esp);
+				unregister_scsi(esp->ehost);
 				return 0;
 			}
 
@@ -259,7 +263,7 @@
 	struct NCR_ESP *esp = (struct NCR_ESP *)host->hostdata;
 	unsigned char tmp_byte;
 
-
+	esp_deallocate(esp);
 	/*
 	 * Tell the 86C01 to stop sending interrupts
 	 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)