From: Don Brace Date: Sat, 18 Jul 2015 16:12:22 +0000 (-0500) Subject: hpsa: Correct double unlock of mutex X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77678d3a35455d7b7c4da4e56b20de17ee63cec1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git hpsa: Correct double unlock of mutex Reported-by: Dan Carpenter Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Reviewed-by: Tomas Henzl Signed-off-by: Don Brace Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index cab4e98b2b0e..cb11421f9cb8 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -2749,11 +2749,10 @@ static int hpsa_do_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev, lockup_detected(h)); if (unlikely(lockup_detected(h))) { - dev_warn(&h->pdev->dev, - "Controller lockup detected during reset wait\n"); - mutex_unlock(&h->reset_mutex); - rc = -ENODEV; - } + dev_warn(&h->pdev->dev, + "Controller lockup detected during reset wait\n"); + rc = -ENODEV; + } if (unlikely(rc)) atomic_set(&dev->reset_cmds_out, 0);