mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 commit80f2ab46c2("irdma: free iwdev->rf after removing MSI-X") was accidentally removed. Fixes:0c2b80cac9("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>
This commit is contained in:
committed by
Leon Romanovsky
parent
81f44409fb
commit
9e13d880eb
@@ -320,6 +320,8 @@ static void icrdma_remove(struct auxiliary_device *aux_dev)
|
||||
irdma_ib_unregister_device(iwdev);
|
||||
icrdma_deinit_interrupts(iwdev->rf, cdev_info);
|
||||
|
||||
kfree(iwdev->rf);
|
||||
|
||||
pr_debug("INIT: Gen[%d] func[%d] device remove success\n",
|
||||
rdma_ver, PCI_FUNC(cdev_info->pdev->devfn));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user