1
0
Fork 0
remarkable-linux/drivers/scsi/qla2xxx
Dan Carpenter a5733703e3 scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted()
[ Upstream commit cbe3fd39d2 ]

We should first do the le16_to_cpu endian conversion and then apply the
FCP_CMD_LENGTH_MASK mask.

Fixes: 5f35509db1 ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-18 09:16:22 +02:00
..
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_attr.c scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion 2018-08-09 12:16:37 +02:00
qla_bsg.c
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Remove potential macro parameter side-effect in ql_dump_regs() 2017-08-24 22:29:28 -04:00
qla_dbg.h
qla_def.h scsi: qla2xxx: Fix Relogin being triggered too fast 2018-03-15 10:54:26 +01:00
qla_devtbl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla_dfs.c
qla_fw.h scsi: qla2xxx: Add LR distance support from nvram bit 2017-08-24 22:29:29 -04:00
qla_gbl.h scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion 2018-08-09 12:16:37 +02:00
qla_gs.c scsi: qla2xxx: Fix unintialized List head crash 2018-08-09 12:16:37 +02:00
qla_init.c scsi: qla2xxx: Return error when TMF returns 2018-08-09 12:16:37 +02:00
qla_inline.h scsi: qla2xxx: Fix unintialized List head crash 2018-08-09 12:16:37 +02:00
qla_iocb.c scsi: qla2xxx: Fix memory leak for allocating abort IOCB 2018-08-15 18:12:47 +02:00
qla_isr.c scsi: qla2xxx: Mask off Scope bits in retry delay 2018-07-03 11:24:57 +02:00
qla_mbx.c scsi: qla2xxx: Fix PRLI state check 2018-03-15 10:54:26 +01:00
qla_mid.c scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion 2018-08-09 12:16:37 +02:00
qla_mr.c scsi: qla2xxx: Prevent sp->free null/uninitialized pointer dereference. 2017-08-24 22:29:24 -04:00
qla_mr.h
qla_nvme.c qla2xxx: remove use of FC-specific error codes 2017-09-25 08:56:05 -06:00
qla_nvme.h scsi: qla2xxx: Move function prototype to correct header 2017-08-07 14:04:02 -04:00
qla_nx.c
qla_nx.h
qla_nx2.c
qla_nx2.h
qla_os.c scsi: qla2xxx: Fix ISP recovery on unload 2018-08-09 12:16:37 +02:00
qla_settings.h
qla_sup.c
qla_target.c scsi: qla2xxx: Fix logo flag for qlt_free_session_done() 2018-03-21 12:06:45 +01:00
qla_target.h scsi: qla2xxx: Fix an endian bug in fcpcmd_is_corrupted() 2018-10-18 09:16:22 +02:00
qla_tmpl.c Merge branch 'fixes' into misc 2017-09-07 12:12:43 -07:00
qla_tmpl.h
qla_version.h scsi: qla2xxx: Update driver version to 10.00.00.01-k 2017-08-24 22:29:34 -04:00
tcm_qla2xxx.c
tcm_qla2xxx.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00