diff options
author | 2021-12-10 01:42:34 -0800 | |
---|---|---|
committer | 2021-12-14 20:13:29 -0400 | |
commit | 12d3bbdd6bd2780b71cc466f3fbc6eb7d43bbc2a (patch) | |
tree | 621ca4e9992c7f2f268720bee189eff44ef010ef /tools/perf/scripts/python/export-to-postgresql.py | |
parent | IB/qib: Fix memory leak in qib_user_sdma_queue_pkts() (diff) | |
download | wireguard-linux-12d3bbdd6bd2780b71cc466f3fbc6eb7d43bbc2a.tar.xz wireguard-linux-12d3bbdd6bd2780b71cc466f3fbc6eb7d43bbc2a.zip |
RDMA/hns: Replace kfree() with kvfree()
Variables allocated by kvmalloc_array() should not be freed by kfree.
Because they may be allocated by vmalloc. So we replace kfree() with
kvfree() here.
Fixes: 6fd610c5733d ("RDMA/hns: Support 0 hop addressing for SRQ buffer")
Link: https://lore.kernel.org/r/20211210094234.5829-1-billsjc@sjtu.edu.cn
Signed-off-by: Jiacheng Shi <billsjc@sjtu.edu.cn>
Acked-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions