david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[myson] 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 93f1d69a77
commit 76b4323b4d
1 changed files with 2 additions and 0 deletions

View File

@ -626,6 +626,7 @@ static int myson_probe ( struct pci_device *pci ) {
err_register_netdev:
myson_reset ( myson );
err_reset:
iounmap ( myson->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
err_alloc:
@ -648,6 +649,7 @@ static void myson_remove ( struct pci_device *pci ) {
myson_reset ( myson );
/* Free network device */
iounmap ( myson->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
}