diff options
| author | Mike Christie <[email protected]> | 2020-07-01 20:43:21 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-07-08 00:14:34 -0400 |
| commit | a6f9b6cee3f25fdf08953553a468e658fed00f3c (patch) | |
| tree | ef870d63af5b5a53063befa547e384fd766df59e /tools/perf/scripts/python | |
| parent | 169622eee4373d98172647a1efad24e8fcd94e1b (diff) | |
scsi: target: Fix iscsi transport id buffer setup
This fixes the following bugs with the transport id setup for iscsi:
1. Incorrectly adding NULL after initiator name for TPID format 1.
2. For TPID format 1 buffer setup we are doing off+len, off++ and then
also len+=some_value. This results in the isid going past buffer
boundaries when we then do buf[off+len]
3. The pr_reg_isid is the isid in string format which is 12 bytes, but we
are only copying 6 bytes.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions