Re: [PATCH rdma-next 1/1] RDMA/ionic: Fix memory leak of admin q_wr

From: Jason Gunthorpe

Date: Fri Sep 26 2025 - 12:15:49 EST


On Wed, Sep 24, 2025 at 07:51:23PM +0530, Abhijit Gangurde wrote:
> The admin queue work request buffer, aq->q_wr, is allocated
> via kcalloc in __ionic_create_rdma_adminq. However, it was
> not being freed in the corresponding teardown function
> __ionic_destroy_rdma_adminq. This results in a memory leak.
> Fix this leak by adding the missing kfree(aq->q_wr) in the
> destruction path.
>
> Fixes: f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations")
> Signed-off-by: Abhijit Gangurde <abhijit.gangurde@xxxxxxx>
> ---
> drivers/infiniband/hw/ionic/ionic_admin.c | 1 +
> 1 file changed, 1 insertion(+)

Applied to for-next, thanks

Jason