diff options
| author | Md Haris Iqbal <[email protected]> | 2024-08-21 13:22:12 +0200 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-08-28 15:24:35 +0300 |
| commit | 3e4289b29e216a55d08a89e126bc0b37cbad9f38 (patch) | |
| tree | 781e265ec329bc26fc3e042513553bd953a8869e /tools/perf/scripts/python/parallel-perf.py | |
| parent | 6793f9581f75d98c5ba0753e863a5442a9dff07c (diff) | |
RDMA/rtrs-clt: Reset cid to con_num - 1 to stay in bounds
In the function init_conns(), after the create_con() and create_cm() for
loop if something fails. In the cleanup for loop after the destroy tag, we
access out of bound memory because cid is set to clt_path->s.con_num.
This commits resets the cid to clt_path->s.con_num - 1, to stay in bounds
in the cleanup loop later.
Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality")
Signed-off-by: Md Haris Iqbal <[email protected]>
Signed-off-by: Jack Wang <[email protected]>
Signed-off-by: Grzegorz Prajsner <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions