2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 03:09:12 +00:00

[intel] Add missing iounmap()

Reported-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-07-19 17:10:28 +01:00
parent 58ed3b1cee
commit ac8107854f

View File

@ -799,6 +799,7 @@ static int intel_probe ( struct pci_device *pci ) {
err_fetch_mac:
intel_reset ( intel );
err_reset:
iounmap ( intel->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
err_alloc:
@ -821,6 +822,7 @@ static void intel_remove ( struct pci_device *pci ) {
intel_reset ( intel );
/* Free network device */
iounmap ( intel->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
}