]> 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>
Tue, 8 Nov 2011 00:20:05 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 8 Nov 2011 03:15:56 +0000 (14:15 +1100)
commit1ce8a748f3db3bb5b664e3d7956ade42680ed4c1
treee51f5aefa45654661ac564a72d554a7c4eb12ee8
parent471723fb9155b1f6a870d1f75aa358795e2c694e
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