diff options
author | 2024-04-12 17:16:12 +0800 | |
---|---|---|
committer | 2024-04-16 15:06:47 +0300 | |
commit | dc3bda6e568e9310b7cd07769dd70a3f0cd696ca (patch) | |
tree | 9eccc376e8757a420e5df91f5e63dc911abce4c2 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | RDMA/hns: Fix UAF for cq async event (diff) | |
download | wireguard-linux-dc3bda6e568e9310b7cd07769dd70a3f0cd696ca.tar.xz wireguard-linux-dc3bda6e568e9310b7cd07769dd70a3f0cd696ca.zip |
RDMA/hns: Fix mismatch exception rollback
When dma_alloc_coherent() fails in hns_roce_alloc_hem(), just call
kfree() to release hem instead of hns_roce_free_hem().
Fixes: c00743cbf2b8 ("RDMA/hns: Simplify 'struct hns_roce_hem' allocation")
Signed-off-by: wenglianfa <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240412091616.370789-7-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions