android_kernel_samsung_a7y1.../drivers/target
Bodo Stroesser d227adf051 scsi: target: core: Do not overwrite CDB byte 1
[ Upstream commit 27e84243cb63601a10e366afe3e2d05bb03c1cb5 ]

passthrough_parse_cdb() - used by TCMU and PSCSI - attepts to reset the LUN
field of SCSI-2 CDBs (bits 5,6,7 of byte 1).  The current code is wrong as
for newer commands not having the LUN field it overwrites relevant command
bits (e.g. for SECURITY PROTOCOL IN / OUT). We think this code was
unnecessary from the beginning or at least it is no longer useful. So we
remove it entirely.

Link: https://lore.kernel.org/r/12498eab-76fd-eaad-1316-c2827badb76a@ts.fujitsu.com
Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 09:29:07 +02:00
..
iscsi A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
loopback A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sbp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tcm_fc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_alua.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_alua.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_configfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_device.c scsi: target: core: Do not overwrite CDB byte 1 2020-04-07 09:29:07 +02:00
target_core_fabric_configfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_fabric_lib.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_file.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_file.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_hba.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_iblock.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_iblock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_internal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_pr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_pr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_pscsi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_pscsi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_rd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_rd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_sbc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_spc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_stat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_tmr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_tpg.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_transport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_ua.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_ua.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_user.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_xcopy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
target_core_xcopy.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30