[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <176087090639.147630.2015406926663956214.b4-ty@kernel.org>
Date: Sun, 19 Oct 2025 06:48:26 -0400
From: Leon Romanovsky <leon@...nel.org>
To: kalesh-anakkur.purayil@...adcom.com,
YanLong Dai <daiyanlong@...inos.cn>
Cc: jgg@...pe.ca, linux-kernel@...r.kernel.org, linux-rdma@...r.kernel.org,
selvin.xavier@...adcom.com, dyl_wlc@....com
Subject: Re: [PATCH v2 rdma-rc] RDMA/bnxt_re: Fix a potential memory leak
in destroy_gsi_sqp
On Wed, 24 Sep 2025 14:14:44 +0800, YanLong Dai wrote:
> The current error handling path in bnxt_re_destroy_gsi_sqp() could lead
> to a resource leak. When bnxt_qplib_destroy_qp() fails, the function
> jumps to the 'fail' label and returns immediately, skipping the call
> to bnxt_qplib_free_qp_res().
>
> Continue the resource teardown even if bnxt_qplib_destroy_qp() fails,
> which aligns with the driver's general error handling strategy and
> prevents the potential leak.
>
> [...]
Applied, thanks!
[1/1] RDMA/bnxt_re: Fix a potential memory leak in destroy_gsi_sqp
https://git.kernel.org/rdma/rdma/c/88de89f184661e
Best regards,
--
Leon Romanovsky <leon@...nel.org>
Powered by blists - more mailing lists