scsi: mpi3mr: Unlock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Jul 2022 11:20:50 +0000 (14:20 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Jul 2022 03:03:56 +0000 (23:03 -0400)
commit2a8a0147cb523ff8c21e57195dae1833b35dafaf
tree3e776934baeab04510940126fe547dd2ff5199b5
parentcf1ce8b715240e3e4a86162788958444e9208472
scsi: mpi3mr: Unlock on error path

There is some clean up necessary before returning.  Smatch complains:

    drivers/scsi/mpi3mr/mpi3mr_fw.c:4786 mpi3mr_soft_reset_handler()
    warn: inconsistent returns '&mrioc->reset_mutex'.
      Locked on  : 4730
      Unlocked on: 4786

Link: https://lore.kernel.org/r/YtVCEsxMU8buuMjP@kili
Fixes: f10af057325c ("scsi: mpi3mr: Resource Based Metering")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c