From: Adam Radford Date: Wed, 9 Jul 2014 22:17:54 +0000 (-0700) Subject: megaraid_sas: Fix reset_mutex leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2fbcbc3f0aa3bea3bf5c86e41f9c543c8de9e75;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Martin K. Petersen Signed-off-by: Christoph Hellwig --- 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) printk(KERN_WARNING "megaraid_sas: Hardware critical error, " "returning FAILED for scsi%d.\n", instance->host->host_no); + mutex_unlock(&instance->reset_mutex); return FAILED; }