aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid
diff options
context:
space:
mode:
authorAdam Radford <aradford@gmail.com>2014-07-09 18:17:54 -0400
committerChristoph Hellwig <hch@lst.de>2014-09-16 12:09:54 -0400
commita2fbcbc3f0aa3bea3bf5c86e41f9c543c8de9e75 (patch)
treef07b964d907f70bccb099cbe61a7311032aab306 /drivers/scsi/megaraid
parentc21bb25e8a8653c6d5ba1bec5c6ef4a20ee35347 (diff)
megaraid_sas: Fix reset_mutex leak
The following patch for megaraid_sas fixes a reset_mutex leak in megasas_reset_fusion(). Signed-off-by: Adam Radford <aradford@gmail.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_fusion.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 3ed03dfab76c..57b47fe69072 100644
--- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
+++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
@@ -2355,6 +2355,7 @@ int megasas_reset_fusion(struct Scsi_Host *shost, int iotimeout)
2355 printk(KERN_WARNING "megaraid_sas: Hardware critical error, " 2355 printk(KERN_WARNING "megaraid_sas: Hardware critical error, "
2356 "returning FAILED for scsi%d.\n", 2356 "returning FAILED for scsi%d.\n",
2357 instance->host->host_no); 2357 instance->host->host_no);
2358 mutex_unlock(&instance->reset_mutex);
2358 return FAILED; 2359 return FAILED;
2359 } 2360 }
2360 2361