]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Replace kfree() with kvfree()
authorJiacheng Shi <billsjc@sjtu.edu.cn>
Fri, 10 Dec 2021 09:42:34 +0000 (01:42 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 15 Dec 2021 00:13:29 +0000 (20:13 -0400)
commit61faadc1d2c1b0b093d243f813794d613c40d469
tree621ca4e9992c7f2f268720bee189eff44ef010ef
parent673e4dd8dbad9cc5110c7bb7d61840c2cd66451f
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: 705a0258dfff ("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>
drivers/infiniband/hw/hns/hns_roce_srq.c