]> 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>
Fri, 9 Dec 2011 04:52:29 +0000 (15:52 +1100)
commitb6f49da584c9da1c2a69b40495019f8b5f4d83e4
tree28a96011de8e2a0bf07acff9f8e7a7c4090c5dee
parent9ccef7fa61cd896030713200e6b40f4f9da1c14e
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