]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit5f35509db179ca7ed1feaa4b14f841adb06ed220
treef5b4e6bc95ec09eed327291db14d45217ebb6e33
parentfc1ffd6cb38a1c1af625b9833c41928039e733f5
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