[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>
This commit is contained in:
adam radford 2011-10-08 18:14:39 -07:00 committed by James Bottomley
parent 6bf579a326
commit d4a759a954

View file

@ -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);