diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcpim.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcpim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_fcpim.c b/drivers/scsi/bfa/bfa_fcpim.c index e07bd4745d8..846f15b6e1d 100644 --- a/drivers/scsi/bfa/bfa_fcpim.c +++ b/drivers/scsi/bfa/bfa_fcpim.c | |||
@@ -2647,7 +2647,8 @@ bfa_fcpim_lunmask_add(struct bfa_s *bfa, u16 vf_id, wwn_t *pwwn, | |||
2647 | if (port) { | 2647 | if (port) { |
2648 | *pwwn = port->port_cfg.pwwn; | 2648 | *pwwn = port->port_cfg.pwwn; |
2649 | rp_fcs = bfa_fcs_lport_get_rport_by_pwwn(port, rpwwn); | 2649 | rp_fcs = bfa_fcs_lport_get_rport_by_pwwn(port, rpwwn); |
2650 | rp = rp_fcs->bfa_rport; | 2650 | if (rp_fcs) |
2651 | rp = rp_fcs->bfa_rport; | ||
2651 | } | 2652 | } |
2652 | 2653 | ||
2653 | lunm_list = bfa_get_lun_mask_list(bfa); | 2654 | lunm_list = bfa_get_lun_mask_list(bfa); |
@@ -2715,7 +2716,8 @@ bfa_fcpim_lunmask_delete(struct bfa_s *bfa, u16 vf_id, wwn_t *pwwn, | |||
2715 | if (port) { | 2716 | if (port) { |
2716 | *pwwn = port->port_cfg.pwwn; | 2717 | *pwwn = port->port_cfg.pwwn; |
2717 | rp_fcs = bfa_fcs_lport_get_rport_by_pwwn(port, rpwwn); | 2718 | rp_fcs = bfa_fcs_lport_get_rport_by_pwwn(port, rpwwn); |
2718 | rp = rp_fcs->bfa_rport; | 2719 | if (rp_fcs) |
2720 | rp = rp_fcs->bfa_rport; | ||
2719 | } | 2721 | } |
2720 | } | 2722 | } |
2721 | 2723 | ||