commit | cbe3fd39d223f14b1c60c80fe9347a3dd08c2edb | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Sep 08 11:42:27 2018 +0300 |
committer | Martin K. Petersen <martin.petersen@oracle.com> | Tue Sep 11 21:08:27 2018 -0400 |
tree | c24e363933bff5b68bf05b8daa463dd5b1bab3b0 | |
parent | 679fcae46c8b2352bba3485d521da070cfbe68e6 [diff] |
scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted() We should first do the le16_to_cpu endian conversion and then apply the FCP_CMD_LENGTH_MASK mask. Fixes: 5f35509db179 ("qla2xxx: Terminate exchange if corrupted") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Quinn Tran <Quinn.Tran@cavium.com> Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>