From: Chad Dupuis Date: Wed, 23 Feb 2011 23:27:07 +0000 (-0800) Subject: [SCSI] qla2xxx: Fix array subscript is above array bounds in qla2xx_build_scsi_type_6... X-Git-Tag: v2.6.39-rc1~440^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c8cf2fee1027caaadf0e96145ff97f931ba4bdd;p=pandora-kernel.git [SCSI] qla2xxx: Fix array subscript is above array bounds in qla2xx_build_scsi_type_6_iocbs(). 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 Signed-off-by: Madhuranath Iyengar Signed-off-by: James Bottomley --- Reading git-diff-tree failed