summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_prime.h
diff options
context:
space:
mode:
authorAleksandr Miloserdov <a.miloserdov@yadro.com>2021-02-09 08:22:01 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-02-23 04:21:29 +0100
commit1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad (patch)
tree5bd664dd5b431e3e94380a219201b4fee7b218b8 /include/drm/drm_prime.h
parentscsi: iscsi: Drop session lock in iscsi_session_chkready() (diff)
downloadlinux-1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad.tar.xz
linux-1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad.zip
scsi: target: core: Add cmd length set before cmd complete
TCM doesn't properly handle underflow case for service actions. One way to prevent it is to always complete command with target_complete_cmd_with_length(), however it requires access to data_sg, which is not always available. This change introduces target_set_cmd_data_length() function which allows to set command data length before completing it. Link: https://lore.kernel.org/r/20210209072202.41154-2-a.miloserdov@yadro.com Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Reviewed-by: Bodo Stroesser <bostroesser@gmail.com> Signed-off-by: Aleksandr Miloserdov <a.miloserdov@yadro.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/drm/drm_prime.h')
0 files changed, 0 insertions, 0 deletions