Re: [PATCH 07/10] qla2xxx: Terminate exchange if corrputed.

2016-12-20 Thread Christoph Hellwig
> + while ((ha->tgt.atio_ring_ptr->signature != ATIO_PROCESSED) || > +FCPCMD_IS_CORRUPTED(ha->tgt.atio_ring_ptr)) { No need for the inner braces. > +#define FCPCMD_IS_CORRUPTED(_a) > \ > + ((_a->entry_type == ATIO_TYPE7) &&

[PATCH 07/10] qla2xxx: Terminate exchange if corrputed.

2016-12-19 Thread Himanshu Madhani
From: Quinn Tran 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 Signed-off-by: Himanshu Madhani --- drive