Patchwork [Open-FCoE,31/44] libfc: use fc_bsg_to_rport() to access a bsg_job's rport

login
register
mail settings
Submitter Johannes Thumshirn
Date Oct. 11, 2016, 11:29 a.m.
Message ID <61d3a01f2c7fab43b7a7eb34c889b10751831aa7.1476180827.git.jthumshirn@suse.de>
Download mbox | patch
Permalink /patch/340/
State New
Headers show

Comments

Johannes Thumshirn - Oct. 11, 2016, 11:29 a.m.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
---
 drivers/scsi/libfc/fc_lport.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index c60fdb9..156708a 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -2102,7 +2102,7 @@  int fc_lport_bsg_request(struct fc_bsg_job *job)
 
 	switch (bsg_request->msgcode) {
 	case FC_BSG_RPT_ELS:
-		rport = job->rport;
+		rport = fc_bsg_to_rport(job);
 		if (!rport)
 			break;
 
@@ -2112,7 +2112,7 @@  int fc_lport_bsg_request(struct fc_bsg_job *job)
 		break;
 
 	case FC_BSG_RPT_CT:
-		rport = job->rport;
+		rport = fc_bsg_to_rport(job);
 		if (!rport)
 			break;