Re: [PATCH rdma-next 2/3] RDMA/core: Free unpublished port statistics after initial-read failure

From: Kalesh Anakkur Purayil

Date: Thu Oct 15 2026 - 09:17:38 EST




On Thu, Oct 15, 2026 at 5:31 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
From: Leon Romanovsky <leonro@xxxxxxxxxx>

An initial port counter read can fail after allocating its statistics
buffer and wrapper. Free these both allocations.

Fixes: 467f432a521a ("RDMA/core: Split port and device counter sysfs attributes")
Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
 
LGTM,
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@xxxxxxxxxxxx>



--
Regards,
Kalesh AP

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature