]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fixes the missing PCI iounmap for various legs
authorFuyun Liang <liangfuyun1@huawei.com>
Tue, 15 May 2018 18:20:14 +0000 (19:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 15:33:08 +0000 (11:33 -0400)
commitb388bf5def231029ae342045f4640d7512b0deeb
treec4fe0791b3fae64ff195b7c44c07837e103b5d7b
parent3a2088b5c635dc6abc2848f7f93649506cd17bb5
net: hns3: Fixes the missing PCI iounmap for various legs

We call pcim_iomap in hclge_pci_init, pcim_iounmap should be called
in error handle of hclge_init_ae_dev.

We call pcim_iomap in hclge_pci_init, but do not call pcim_iounmap in
hclge_pci_uninit. When we remove the hclge.ko and insert it again, a
problem that pci can not map will happen. pcim_iounmap need to be called
in hclge_pci_uninit.

Fixes: 22c0e2ce21dd ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c