From: Bart Van Assche Date: Tue, 25 Jun 2013 15:27:28 +0000 (-0400) Subject: [SCSI] qla2xxx: Help Coverity with analyzing ct_sns_pkt initialization. X-Git-Tag: v3.11-rc1~6^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec6f9094a76aa9e732ede2add6cf32d0c2206e3;p=pandora-kernel.git [SCSI] qla2xxx: Help Coverity with analyzing ct_sns_pkt initialization. Coverity reports "Overrunning struct type ct_sns_req of 1228 bytes by passing it to a function which accesses it at byte offset 8207" for each qla2x00_prep_ct_req(), qla2x00_prep_ct_fdmi_req() and qla24xx_prep_ct_fm_req() call. Help Coverity to recognize that these calls do not trigger a buffer overflow by making it explicit that these three functions initializes both the request and reply structures. This patch does not change any functionality. Signed-off-by: Bart Van Assche Signed-off-by: Saurav Kashyap Signed-off-by: James Bottomley --- Reading git-diff-tree failed