]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt2sas: Fix mismatch in mpt2sas_base_hard_reset_handler() mutex lock-unlock
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 25 Aug 2011 20:36:23 +0000 (00:36 +0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 13 Feb 2012 01:39:28 +0000 (19:39 -0600)
commit8c1b502e6f62ee81755c9190aa8e4e3ee289146a
treeee7a8ab5c5f6875b61b89d780a584ab1a139745e
parentb15dbe61a15e1bb2372609ae7d4ba8216cb2c54a
[SCSI] mpt2sas: Fix mismatch in mpt2sas_base_hard_reset_handler() mutex lock-unlock

If ioc->pci_error_recovery is set, goto out in mpt2sas_base_hard_reset_handler()
leads to unlock unheld ioc->reset_in_progress_mutex.

The patch fixes the issue by jumping afer mutex_unlock() call.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_base.c