Commit d11b0ca3 authored by Vikas Chaudhary's avatar Vikas Chaudhary Committed by James Bottomley

[SCSI] qla4xxx: Added missing check for ISP83XX in CHAP related functions

Signed-off-by: default avatarVikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 2c10cd43
...@@ -1531,7 +1531,7 @@ int qla4xxx_get_chap_index(struct scsi_qla_host *ha, char *username, ...@@ -1531,7 +1531,7 @@ int qla4xxx_get_chap_index(struct scsi_qla_host *ha, char *username,
int max_chap_entries = 0; int max_chap_entries = 0;
struct ql4_chap_table *chap_table; struct ql4_chap_table *chap_table;
if (is_qla8022(ha)) if (is_qla80XX(ha))
max_chap_entries = (ha->hw.flt_chap_size / 2) / max_chap_entries = (ha->hw.flt_chap_size / 2) /
sizeof(struct ql4_chap_table); sizeof(struct ql4_chap_table);
else else
......
...@@ -391,7 +391,7 @@ static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx, ...@@ -391,7 +391,7 @@ static int qla4xxx_get_chap_list(struct Scsi_Host *shost, uint16_t chap_tbl_idx,
int valid_chap_entries = 0; int valid_chap_entries = 0;
int ret = 0, i; int ret = 0, i;
if (is_qla8022(ha)) if (is_qla80XX(ha))
max_chap_entries = (ha->hw.flt_chap_size / 2) / max_chap_entries = (ha->hw.flt_chap_size / 2) /
sizeof(struct ql4_chap_table); sizeof(struct ql4_chap_table);
else else
...@@ -495,7 +495,7 @@ static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx) ...@@ -495,7 +495,7 @@ static int qla4xxx_delete_chap(struct Scsi_Host *shost, uint16_t chap_tbl_idx)
memset(chap_table, 0, sizeof(struct ql4_chap_table)); memset(chap_table, 0, sizeof(struct ql4_chap_table));
if (is_qla8022(ha)) if (is_qla80XX(ha))
max_chap_entries = (ha->hw.flt_chap_size / 2) / max_chap_entries = (ha->hw.flt_chap_size / 2) /
sizeof(struct ql4_chap_table); sizeof(struct ql4_chap_table);
else else
...@@ -4087,7 +4087,7 @@ static int qla4xxx_get_bidi_chap(struct scsi_qla_host *ha, char *username, ...@@ -4087,7 +4087,7 @@ static int qla4xxx_get_bidi_chap(struct scsi_qla_host *ha, char *username,
int max_chap_entries = 0; int max_chap_entries = 0;
struct ql4_chap_table *chap_table; struct ql4_chap_table *chap_table;
if (is_qla8022(ha)) if (is_qla80XX(ha))
max_chap_entries = (ha->hw.flt_chap_size / 2) / max_chap_entries = (ha->hw.flt_chap_size / 2) /
sizeof(struct ql4_chap_table); sizeof(struct ql4_chap_table);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment