On 10/14/19 11:29 AM, Bodo Stroesser wrote:
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.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>