hpsa: Correct double unlock of mutex
Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Scott Teel <scott.teel@pmcs.com> Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Don Brace <don.brace@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
parent
5aeeb78aeb
commit
77678d3a35
@ -2749,11 +2749,10 @@ static int hpsa_do_reset(struct ctlr_info *h, struct hpsa_scsi_dev_t *dev,
|
|||||||
lockup_detected(h));
|
lockup_detected(h));
|
||||||
|
|
||||||
if (unlikely(lockup_detected(h))) {
|
if (unlikely(lockup_detected(h))) {
|
||||||
dev_warn(&h->pdev->dev,
|
dev_warn(&h->pdev->dev,
|
||||||
"Controller lockup detected during reset wait\n");
|
"Controller lockup detected during reset wait\n");
|
||||||
mutex_unlock(&h->reset_mutex);
|
rc = -ENODEV;
|
||||||
rc = -ENODEV;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (unlikely(rc))
|
if (unlikely(rc))
|
||||||
atomic_set(&dev->reset_cmds_out, 0);
|
atomic_set(&dev->reset_cmds_out, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user