linux-stable/drivers/infiniband
Jiacheng Shi 12d3bbdd6b 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: 6fd610c573 ("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>
2021-12-14 20:13:29 -04:00
..
core RDMA/nldev: Check stat attribute before accessing it 2021-11-17 16:45:16 -04:00
hw RDMA/hns: Replace kfree() with kvfree() 2021-12-14 20:13:29 -04:00
sw RDMA: Fix use-after-free in rxe_queue_cleanup 2021-11-25 13:15:59 -04:00
ulp RDMA/rtrs: Call {get,put}_cpu_ptr to silence a debug kernel warning 2021-11-29 10:56:18 -04:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00