diff options
author | Himanshu Madhani <himanshu.madhani@qlogic.com> | 2014-09-25 05:16:46 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-25 08:25:02 -0400 |
commit | df57cabac41fd54e8eb73f9de482f054eb0b98eb (patch) | |
tree | 2c136444c77d444667e5fc4e883d658aac52e7eb /drivers/scsi/qla2xxx/qla_attr.c | |
parent | e475f9c0a5a12dfc79647f5a9b222f20db5f61a5 (diff) |
qla2xxx: Add FDMI-2 functionality.
Add support for the FDMI-2 fabric switch feature.
Since FDMI-2 uses code from FDMI-1, some of the existing code
needed to be repaired to prevent fields from being overflowed.
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 16fe5196e6d9..868f4e5bd863 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -1014,7 +1014,7 @@ qla2x00_fw_version_show(struct device *dev, | |||
1014 | char fw_str[128]; | 1014 | char fw_str[128]; |
1015 | 1015 | ||
1016 | return scnprintf(buf, PAGE_SIZE, "%s\n", | 1016 | return scnprintf(buf, PAGE_SIZE, "%s\n", |
1017 | ha->isp_ops->fw_version_str(vha, fw_str)); | 1017 | ha->isp_ops->fw_version_str(vha, fw_str, sizeof(fw_str))); |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | static ssize_t | 1020 | static ssize_t |
@@ -1924,7 +1924,8 @@ qla2x00_get_host_symbolic_name(struct Scsi_Host *shost) | |||
1924 | { | 1924 | { |
1925 | scsi_qla_host_t *vha = shost_priv(shost); | 1925 | scsi_qla_host_t *vha = shost_priv(shost); |
1926 | 1926 | ||
1927 | qla2x00_get_sym_node_name(vha, fc_host_symbolic_name(shost)); | 1927 | qla2x00_get_sym_node_name(vha, fc_host_symbolic_name(shost), |
1928 | sizeof(fc_host_symbolic_name(shost))); | ||
1928 | } | 1929 | } |
1929 | 1930 | ||
1930 | static void | 1931 | static void |