diff options
author | Junxian Huang <[email protected]> | 2024-11-08 15:57:43 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2024-11-10 09:29:53 -0500 |
commit | 6b526d17eed850352d880b93b9bf20b93006bd92 (patch) | |
tree | 2fa1cd211828bf2f144fb5b7fa35a7043b54c2a0 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 5dbcb1c1900f45182b5651c89257c272f1f3ead7 (diff) |
RDMA/hns: Fix NULL pointer derefernce in hns_roce_map_mr_sg()
ib_map_mr_sg() allows ULPs to specify NULL as the sg_offset argument.
The driver needs to check whether it is a NULL pointer before
dereferencing it.
Fixes: d387d4b54eb8 ("RDMA/hns: Fix missing pagesize and alignment check in FRMR")
Signed-off-by: Junxian Huang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions