mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
pds_core: don't release PCI regions for VFs on reset
pdsc_reset_prepare() called pci_release_regions() unconditionally, but
only PFs call pci_request_regions() (pdsc_init_pf). On a VF FLR this
makes the kernel warn "Trying to free nonexistent resource".
Fixes: ffa5585833 ("pds_core: implement pci reset handlers")
Reported-by: sashiko-bot <sashiko-bot@kernel.org>
Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260804235946.177762-1-nikhil.rao%40amd.com
Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
Link: https://patch.msgid.link/20260901044219.1361466-3-nikhil.rao@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
7980325b2f
commit
73608de7e5
|
|
@ -517,8 +517,8 @@ static void pdsc_reset_prepare(struct pci_dev *pdev)
|
|||
mutex_lock(&pdsc->devcmd_lock);
|
||||
pdsc_unmap_bars(pdsc);
|
||||
mutex_unlock(&pdsc->devcmd_lock);
|
||||
pci_release_regions(pdev);
|
||||
}
|
||||
pci_release_regions(pdev);
|
||||
if (pci_is_enabled(pdev))
|
||||
pci_disable_device(pdev);
|
||||
pdsc_deferred_dma_free(pdsc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user