On Fri, 12 Jan 2024 16:55:23 +0800, Zhipeng Lu wrote: > When dma_alloc_coherent fails to allocate dd->cr_base[i].va, > init_credit_return should deallocate dd->cr_base and > dd->cr_base[i] that allocated before. Or those resources > would be never freed and a memleak is triggered. > > Applied, thanks! [1/1] IB/hfi1: fix a memleak in init_credit_return https://git.kernel.org/rdma/rdma/c/809aa64ebff51e Best regards, -- Leon Romanovsky <leon@xxxxxxxxxx>