Thread (26 messages) 26 messages, 3 authors, 2024-08-30

Re: [PATCH V5 net-next 04/11] net: hibmcge: Add interrupt supported in this module

From: Jijie Shao <shaojijie@huawei.com>
Date: 2024-08-29 01:54:05
Also in: lkml

on 2024/8/29 9:35, Jakub Kicinski wrote:
On Tue, 27 Aug 2024 21:14:48 +0800 Jijie Shao wrote:
quoted
+	ret = pci_alloc_irq_vectors(priv->pdev, HBG_VECTOR_NUM, HBG_VECTOR_NUM,
+				    PCI_IRQ_MSI | PCI_IRQ_MSIX);
These are not devm_ -managed, don't you have to free them?
On remove and errors during probe?
Jonathan Cameron told me:
	I have used pcim_enable(),  so, the irq vectors become device managed.
Look for where those paths call pci_setup_msi_context() / pcim_setup_msi_release()

So there should be no need to free the vectors on remove()

	Thanks,
	Jijie Shao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help