diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2017-10-19 17:23:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-21 13:32:24 +0200 |
commit | 6849540adc0bcc8c648d7c11be169d2ca267fbca (patch) | |
tree | 9ca912490d91f49784b1844711fc0fa4ab08d2b2 /drivers/net | |
parent | net: aquantia: Limit number of MSIX irqs to the number of cpus (diff) | |
download | linux-6849540adc0bcc8c648d7c11be169d2ca267fbca.tar.xz linux-6849540adc0bcc8c648d7c11be169d2ca267fbca.zip |
net: aquantia: mmio unmap was not performed on driver removal
That may lead to mmio resource leakage.
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c index 727f0a446ef1..cadaa646c89f 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c @@ -268,6 +268,9 @@ void aq_pci_func_free(struct aq_pci_func_s *self) aq_nic_ndev_free(self->port[port]); } + if (self->mmio) + iounmap(self->mmio); + kfree(self); err_exit:; |