patch-1.3.22 linux/drivers/scsi/eata.c

Next file: linux/drivers/scsi/eata_dma.c
Previous file: linux/drivers/scsi/aha1542.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.21/linux/drivers/scsi/eata.c linux/drivers/scsi/eata.c
@@ -715,6 +715,7 @@
    if (SCarg->host_scribble == NULL) {
       printk("%s: abort, target %d, pid %ld inactive.\n",
 	     BN(j), SCarg->target, SCarg->pid);
+      restore_flags(flags);
       return SCSI_ABORT_NOT_RUNNING;
       }
 
@@ -759,8 +760,8 @@
       restore_flags(flags);
       return SCSI_ABORT_NOT_RUNNING;
       }
-   else
-      panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i);
+   restore_flags(flags);
+   panic("%s: abort, mbox %d, invalid cp_stat.\n", BN(j), i);
 }
 
 int eata2x_reset (Scsi_Cmnd *SCarg) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this