summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid
diff options
context:
space:
mode:
authoradam radford <aradford@gmail.com>2011-10-08 18:14:39 -0700
committerJames Bottomley <JBottomley@Parallels.com>2011-10-16 11:19:02 -0500
commitd4a759a954072dcb0a0bbd64ec4bc5252182d032 (patch)
tree4ba9cebc0e79a75e59a048431c1ed9ab350ba01f /drivers/scsi/megaraid
parent6bf579a326190d09d8c99316fefee7a6a892b891 (diff)
[SCSI] megaraid_sas: Fix mismatch in megasas_reset_fusion() mutex lock-unlock
Signed-off-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_fusion.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 392b49d93b5..492ad42ff7a 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -2057,8 +2057,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost)
if (instance->adprecovery == MEGASAS_HW_CRITICAL_ERROR) {
printk(KERN_WARNING "megaraid_sas: Hardware critical error, "
"returning FAILED.\n");
- retval = FAILED;
- goto out;
+ return FAILED;
}
mutex_lock(&instance->reset_mutex);