scsi: esas2r: unlock on error in esas2r_nvram_read_direct()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Oct 2019 10:23:24 +0000 (13:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:19:42 +0000 (08:19 +0100)
commit501cdba86ce0a767bab5890dbc18204ba6cc8c72
treeaf5d0c31c1284a48423fd94071cac015ae9a32a2
parent5774dd526d117e960332b2de7b5f36188a87efa2
scsi: esas2r: unlock on error in esas2r_nvram_read_direct()

commit 906ca6353ac09696c1bf0892513c8edffff5e0a6 upstream.

This error path is missing an unlock.

Fixes: 26780d9e12ed ("[SCSI] esas2r: ATTO Technology ExpressSAS 6G SAS/SATA RAID Adapter Driver")
Link: https://lore.kernel.org/r/20191022102324.GA27540@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/esas2r/esas2r_flash.c