]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: use correct release function during uninitialization
authorPeiyang Wang <wangpeiyang1@huawei.com>
Tue, 13 Aug 2024 14:10:24 +0000 (22:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Sep 2024 17:24:05 +0000 (19:24 +0200)
commitab8f0c4986c7ea6b1a3e5cd07d64bdeca00a6768
tree8b6f0db7aadc30de51bf9b4b56fda53844cc5ec8
parent4bfee9346d8c17d928ef6da2b8bffab88fa2a553
net: hns3: use correct release function during uninitialization

[ Upstream commit 7660833d217528c8f2385528951ab820a031e4e3 ]

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c