]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/scsi/mpt2sas/mpt2sas_base.c: fix mismatch in mpt2sas_base_hard_reset_handler...
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 28 Sep 2011 00:49:50 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:14 +0000 (14:53 +1000)
commita93f28da1a764e05a87b1a90ca15a1461b37cffb
tree9c7d9b5cbe240ccfc051c281c1de8269cc4668e1
parent8d0119d71a62cf6fbf54a7761d54a3da9718d683
drivers/scsi/mpt2sas/mpt2sas_base.c: 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.

Fix the issue by jumping afer mutex_unlock() call.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: Andrew Morton <>
drivers/scsi/mpt2sas/mpt2sas_base.c