aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorGiridhar Malavali <giridhar.malavali@qlogic.com>2010-09-03 18:20:51 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-09-05 14:34:56 -0400
commit35e0cbd4b282e541d05ca21694beb26c087bb49e (patch)
tree335801cb54d58e88f6286b6e20b355c9b017762c /drivers/scsi/qla2xxx
parenta5b36321918b3a1295748b77c62976c167233eec (diff)
[SCSI] qla2xxx: Return proper fabric name based on device state.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 679a4326811c..560641aa3a5c 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -1685,14 +1685,14 @@ static void
1685qla2x00_get_host_fabric_name(struct Scsi_Host *shost) 1685qla2x00_get_host_fabric_name(struct Scsi_Host *shost)
1686{ 1686{
1687 scsi_qla_host_t *vha = shost_priv(shost); 1687 scsi_qla_host_t *vha = shost_priv(shost);
1688 u64 node_name; 1688 uint8_t node_name[WWN_SIZE] = { 0xFF, 0xFF, 0xFF, 0xFF, \
1689 0xFF, 0xFF, 0xFF, 0xFF};
1690 u64 fabric_name = wwn_to_u64(node_name);
1689 1691
1690 if (vha->device_flags & SWITCH_FOUND) 1692 if (vha->device_flags & SWITCH_FOUND)
1691 node_name = wwn_to_u64(vha->fabric_node_name); 1693 fabric_name = wwn_to_u64(vha->fabric_node_name);
1692 else
1693 node_name = wwn_to_u64(vha->node_name);
1694 1694
1695 fc_host_fabric_name(shost) = node_name; 1695 fc_host_fabric_name(shost) = fabric_name;
1696} 1696}
1697 1697
1698static void 1698static void