Skip to content

Commit 9e13d88

Browse files
tatyana-enrleon
authored andcommitted
RDMA/irdma: Add a missing kfree of struct irdma_pci_f for GEN2
During a refactor of the irdma GEN2 code, the kfree of the irdma_pci_f struct in icrdma_remove(), which was originally introduced upstream as part of commit 80f2ab4 ("irdma: free iwdev->rf after removing MSI-X") was accidentally removed. Fixes: 0c2b80c ("RDMA/irdma: Refactor GEN2 auxiliary driver") Signed-off-by: Krzysztof Czurylo <krzysztof.czurylo@intel.com> Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Link: https://patch.msgid.link/20251125025350.180-4-tatyana.e.nikolova@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 81f4440 commit 9e13d88

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/infiniband/hw/irdma/icrdma_if.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ static void icrdma_remove(struct auxiliary_device *aux_dev)
320320
irdma_ib_unregister_device(iwdev);
321321
icrdma_deinit_interrupts(iwdev->rf, cdev_info);
322322

323+
kfree(iwdev->rf);
324+
323325
pr_debug("INIT: Gen[%d] func[%d] device remove success\n",
324326
rdma_ver, PCI_FUNC(cdev_info->pdev->devfn));
325327
}

0 commit comments

Comments
 (0)