]> 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>
Thu, 8 Dec 2011 04:33:19 +0000 (15:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Dec 2011 04:18:51 +0000 (15:18 +1100)
commite6086458246cfaceca658dd72f8bcd421cad7434
treeb306b111da3947f7de3c2848963ed4b6d445fcdc
parenteafcfbd7f7cb5579291c4d04db9c8915ac15f44a
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