[SCSI] qla2xxx: Fix array subscript is above array bounds in qla2xx_build_scsi_type_6...
authorChad Dupuis <chad.dupuis@qlogic.com>
Wed, 23 Feb 2011 23:27:07 +0000 (15:27 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 25 Feb 2011 17:24:59 +0000 (12:24 -0500)
The additional increment of dsd_seg was causing the compiler to throw an array
out of bounds warning. This patch moves to a direct assignment of
cmd_pkt->fcp_data_dseg_len so that the compiler doesn't generate an array out
bounds warning.

Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found