diff options
author | Aleksandr Miloserdov <[email protected]> | 2021-02-09 10:22:01 +0300 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-02-22 22:21:29 -0500 |
commit | 1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad (patch) | |
tree | 5bd664dd5b431e3e94380a219201b4fee7b218b8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d39bfd0686fd2b21f857c61bb2753db3a932cb24 (diff) |
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/[email protected]
Reviewed-by: Roman Bolshakov <[email protected]>
Reviewed-by: Bodo Stroesser <[email protected]>
Signed-off-by: Aleksandr Miloserdov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions