]> 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, 16 Nov 2011 23:41:14 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 21 Nov 2011 02:18:11 +0000 (13:18 +1100)
commit9dc403d50fe2b1cc1e02a1aa07ad9ab60529ede5
tree23f4c02a8ed742b413d92010751a6e18addc48bf
parent97d53a77e22ecba395822f8c7b6f7f1f556058c9
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 <akpm@linux-foundation.org>
drivers/scsi/mpt2sas/mpt2sas_base.c