Re: [PATCH rdma-next 07/13] RDMA/hfi1: Free RX data on late probe failure
From: Kalesh Anakkur Purayil
Date: Thu Jul 09 2026 - 05:09:35 EST
On Wed, Jul 8, 2026 at 4:26 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
>
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> hfi1_init_dd() allocates the shared AIP/VNIC RX support before returning.
> If hfi1_init() or hfi1_register_ib_device() later fails, init_one() tears
> down the device data without calling hfi1_free_rx(). This leaks netdev_rx
> and its dummy netdev.
>
> Free the RX support after IB unregistration and before postinit_cleanup(),
> as done on normal device removal.
>
> Fixes: 4730f4a6c6b2 ("IB/hfi1: Activate the dummy netdev")
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@xxxxxxxxxxxx>
--
Regards,
Kalesh AP
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature