diff options
author | Saurav Kashyap <saurav.kashyap@qlogic.com> | 2011-08-16 14:31:49 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-29 03:14:56 -0400 |
commit | 63d92d3e2e211660b1dff155e98e924d560e8163 (patch) | |
tree | 5656ba2f53d87fe2cc8c16f89d6615bbd1604ea1 /drivers | |
parent | 54883291ffdcffbe5c077ede7ec1cf8e5d5e22b6 (diff) |
[SCSI] qla2xxx: Fix array out of bound warning.
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_nx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c index fe9db224794d..e5ae84c9598c 100644 --- a/drivers/scsi/qla2xxx/qla_nx.c +++ b/drivers/scsi/qla2xxx/qla_nx.c | |||
@@ -2609,7 +2609,7 @@ qla2xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt, | |||
2609 | dsd_seg = (uint32_t *)&cmd_pkt->fcp_data_dseg_address; | 2609 | dsd_seg = (uint32_t *)&cmd_pkt->fcp_data_dseg_address; |
2610 | *dsd_seg++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); | 2610 | *dsd_seg++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); |
2611 | *dsd_seg++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); | 2611 | *dsd_seg++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); |
2612 | *dsd_seg++ = cpu_to_le32(dsd_list_len); | 2612 | cmd_pkt->fcp_data_dseg_len = cpu_to_le32(dsd_list_len); |
2613 | } else { | 2613 | } else { |
2614 | *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); | 2614 | *cur_dsd++ = cpu_to_le32(LSD(dsd_ptr->dsd_list_dma)); |
2615 | *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); | 2615 | *cur_dsd++ = cpu_to_le32(MSD(dsd_ptr->dsd_list_dma)); |