[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:
@@ -799,6 +799,7 @@ static int intel_probe ( struct pci_device *pci ) {
|
|||||||
err_fetch_mac:
|
err_fetch_mac:
|
||||||
intel_reset ( intel );
|
intel_reset ( intel );
|
||||||
err_reset:
|
err_reset:
|
||||||
|
iounmap ( intel->regs );
|
||||||
netdev_nullify ( netdev );
|
netdev_nullify ( netdev );
|
||||||
netdev_put ( netdev );
|
netdev_put ( netdev );
|
||||||
err_alloc:
|
err_alloc:
|
||||||
@@ -821,6 +822,7 @@ static void intel_remove ( struct pci_device *pci ) {
|
|||||||
intel_reset ( intel );
|
intel_reset ( intel );
|
||||||
|
|
||||||
/* Free network device */
|
/* Free network device */
|
||||||
|
iounmap ( intel->regs );
|
||||||
netdev_nullify ( netdev );
|
netdev_nullify ( netdev );
|
||||||
netdev_put ( netdev );
|
netdev_put ( netdev );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user