diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2017-10-19 18:23:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-21 14:32:24 +0300 |
commit | 6849540adc0bcc8c648d7c11be169d2ca267fbca (patch) | |
tree | 9ca912490d91f49784b1844711fc0fa4ab08d2b2 /drivers | |
parent | 4c8bb609d304df72858aa2e5e74abab5246bd24b (diff) | |
download | linux-6849540adc0bcc8c648d7c11be169d2ca267fbca.tar.xz |
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')
-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:; |