Skip to content

Commit 7660833

Browse files
Peiyang WangPaolo Abeni
authored andcommitted
net: hns3: use correct release function during uninitialization
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 <[email protected]> Signed-off-by: Jijie Shao <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 86db7bf commit 7660833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11456,7 +11456,7 @@ static void hclge_pci_uninit(struct hclge_dev *hdev)
1145611456

1145711457
pcim_iounmap(pdev, hdev->hw.hw.io_base);
1145811458
pci_free_irq_vectors(pdev);
11459-
pci_release_mem_regions(pdev);
11459+
pci_release_regions(pdev);
1146011460
pci_disable_device(pdev);
1146111461
}
1146211462

0 commit comments

Comments
 (0)