[SCSI] qla2xxx: Help Coverity with analyzing ct_sns_pkt initialization.
authorBart Van Assche <bvanassche@acm.org>
Tue, 25 Jun 2013 15:27:28 +0000 (11:27 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 8 Jul 2013 16:32:34 +0000 (17:32 +0100)
commit6ec6f9094a76aa9e732ede2add6cf32d0c2206e3
treef650adc43b7ae4ca7903423a4e8418e84ad38c60
parent7f544d00698282655c7abed2262a39f5d9fe9283
[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 <bvanassche@acm.org>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_gs.c