]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: Terminate exchange if corrupted
authorQuinn Tran <quinn.tran@cavium.com>
Sat, 24 Dec 2016 02:06:11 +0000 (18:06 -0800)
committerBart Van Assche <bart.vanassche@sandisk.com>
Tue, 17 Jan 2017 19:26:56 +0000 (11:26 -0800)
commit4f491fe8887d0bc230d0ac3faee39c2f36a735d0
treef5b4e6bc95ec09eed327291db14d45217ebb6e33
parent4eca64390792d0f368b983e5c5bdb3addeed4398
qla2xxx: Terminate exchange if corrupted

Corrupted ATIO is defined as length of fcp_header & fcp_cmd
payload is less than 0x38. It's the minimum size for a frame to
carry 8..16 bytes SCSI CDB. The exchange will be dropped or
terminated if corrupted.

Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
[ bvanassche: Fixed spelling in patch title ]
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/qla_target.h