mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
net: hns3: use correct release function during uninitialization
[ Upstream commit 7660833d21
]
pci_request_regions is called to apply for PCI I/O and memory resources
when the driver is initialized, Therefore, when the driver is uninstalled,
pci_release_regions should be used to release PCI I/O and memory resources
instead of pci_release_mem_regions is used to release memory reasouces
only.
Signed-off-by: Peiyang Wang <wangpeiyang1@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
57a606ca15
commit
45ce59266a
1 changed files with 1 additions and 1 deletions
|
@ -11456,7 +11456,7 @@ static void hclge_pci_uninit(struct hclge_dev *hdev)
|
|||
|
||||
pcim_iounmap(pdev, hdev->hw.hw.io_base);
|
||||
pci_free_irq_vectors(pdev);
|
||||
pci_release_mem_regions(pdev);
|
||||
pci_release_regions(pdev);
|
||||
pci_disable_device(pdev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue