Re: [PATCH rdma-next] RDMA/irdma: Free cq with a safer cq num reference
From: Leon Romanovsky
Date: Wed Nov 04 2026 - 04:49:00 EST
On Fri, 30 Oct 2026 17:32:54 +0000, David Hu wrote:
> Within a iwcq, `cq_num` is allocated first, and only
> copied to an inner uk structure, `cq_uk.cq_id` at a
> later stage. Freeing cq by `cq_uk.cq_id` before the
> later stage leads to a cq id leak.
>
> Free `iwcq->cq_num` instead, which is allocated
> right after initial rsrc allocation.
>
> [...]
Applied, thanks!
[1/1] RDMA/irdma: Free cq with a safer cq num reference
https://git.kernel.org/rdma/rdma/c/e50525a486300e
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>