Skip to content
  • Nicholas Bellinger's avatar
    target: Add control CDB READ payload zero work-around · 944981c7
    Nicholas Bellinger authored
    
    
    This patch carries forward a work-around from tcm_loop to target
    core code to explicitly clear control CDB READ paylods in order to
    avoid bugs in scsi-generic user-space code for INQUIRY that do not
    explicitly zero CDB payload memory.
    
    (v2: Drop TARGET_SCF_MAP_CLEAR_MEM, and perform the explicit zero
         of READ memory for all target_submit_cmd_map_sgls users)
    
    Cc: Christoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
    944981c7