[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <170617660887.632552.18288740821667270978.b4-ty@kernel.org>
Date: Thu, 25 Jan 2024 11:56:48 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Zhipeng Lu <alexious@....edu.cn>
Cc: Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>,
Jason Gunthorpe <jgg@...pe.ca>, Jubin John <jubin.john@...el.com>,
Mitko Haralanov <mitko.haralanov@...el.com>,
Ravi Krishnaswamy <ravi.krishnaswamy@...el.com>,
Harish Chegondi <harish.chegondi@...el.com>,
Brendan Cunningham <brendan.cunningham@...el.com>, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] IB/hfi1: fix a memleak in init_credit_return
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@...nel.org>
Powered by blists - more mailing lists