On Fri, Dec 10, 2021 at 01:42:34AM -0800, Jiacheng Shi wrote: > 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") > Signed-off-by: Jiacheng Shi <billsjc@xxxxxxxxxxx> > Acked-by: Wenpeng Liang <liangwenpeng@xxxxxxxxxx> > --- > drivers/infiniband/hw/hns/hns_roce_srq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to for-rc, thanks Jason