linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adam Radford <aradford@gmail.com>
To: linux-scsi@vger.kernel.org, kashyap.desai@avagotech.com,
	sumit.saxena@avagotech.com, uday.lingala@avagotech.com
Cc: Adam Radford <aradford@gmail.com>
Subject: [PATCH 1/4] megaraid_sas: Fix reset_mutex leak
Date: Mon, 30 Jun 2014 17:19:55 -0700	[thread overview]
Message-ID: <1404173998-24363-2-git-send-email-aradford@gmail.com> (raw)
In-Reply-To: <1404173998-24363-1-git-send-email-aradford@gmail.com>

James/linux-scsi,

The following patch for megaraid_sas fixes a reset_mutex leak in megasas_reset_fusion().

Signed-off-by: Adam Radford <aradford@gmail.com>
---
 drivers/scsi/megaraid/megaraid_sas_fusion.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
index 2260041..0858851 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;
 	}
 
-- 
1.7.11.7


  reply	other threads:[~2014-07-01  0:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01  0:19 [PATCH 0/4] megaraid_sas: Update for scsi for-next Adam Radford
2014-07-01  0:19 ` Adam Radford [this message]
2014-07-01  0:19 ` [PATCH 2/4] megaraid_sas: Removed unused variables in megasas_instance Adam Radford
2014-07-01  0:19 ` [PATCH 3/4] megaraid_sas: Fix LD/VF affiliation parsing Adam Radford
2014-07-03  8:18   ` Christoph Hellwig
2014-07-03 23:17     ` adam radford
2014-07-01  0:19 ` [PATCH 4/4] megaraid_sas: Version and Changelog update Adam Radford
  -- strict thread matches above, loose matches on Subject: below --
2014-06-20  0:31 [PATCH 1/4] megaraid_sas: Fix reset_mutex leak adam radford
2014-06-26  1:51 ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1404173998-24363-2-git-send-email-aradford@gmail.com \
    --to=aradford@gmail.com \
    --cc=kashyap.desai@avagotech.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sumit.saxena@avagotech.com \
    --cc=uday.lingala@avagotech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).