scsi: lpfc: correct rcu unlock issue in lpfc_nvme_info_show
authorJames Smart <jsmart2021@gmail.com>
Tue, 7 May 2019 00:26:48 +0000 (17:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 06:18:02 +0000 (08:18 +0200)
commit334d1a2373afc28ed612d5ec6b02c2efe57431f6
treed66d3d4d50960123787cdeda3e16e72aa9601383
parent32d3f7d9dec12a23839ce45f05ea55e57671ddec
scsi: lpfc: correct rcu unlock issue in lpfc_nvme_info_show

[ Upstream commit 79080d349f7f58a2e86c56043a3d04184d5f294a ]

Many of the exit cases were not releasing the rcu read lock.  Corrected the
exit paths.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc_attr.c