Skip to content
Snippets Groups Projects
Commit 6849540a authored by Igor Russkikh's avatar Igor Russkikh Committed by David S. Miller
Browse files

net: aquantia: mmio unmap was not performed on driver removal


That may lead to mmio resource leakage.

Signed-off-by: default avatarPavel Belous <pavel.belous@aquantia.com>
Signed-off-by: default avatarIgor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4c8bb609
No related branches found
No related tags found
No related merge requests found
...@@ -268,6 +268,9 @@ void aq_pci_func_free(struct aq_pci_func_s *self) ...@@ -268,6 +268,9 @@ void aq_pci_func_free(struct aq_pci_func_s *self)
aq_nic_ndev_free(self->port[port]); aq_nic_ndev_free(self->port[port]);
} }
if (self->mmio)
iounmap(self->mmio);
kfree(self); kfree(self);
err_exit:; err_exit:;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment