david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[realtek] 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 ac8107854f
commit e982a7e3c4
1 changed files with 2 additions and 0 deletions

View File

@ -987,6 +987,7 @@ static int realtek_probe ( struct pci_device *pci ) {
err_nvs_read:
realtek_reset ( rtl );
err_reset:
iounmap ( rtl->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
err_alloc:
@ -1013,6 +1014,7 @@ static void realtek_remove ( struct pci_device *pci ) {
realtek_reset ( rtl );
/* Free network device */
iounmap ( rtl->regs );
netdev_nullify ( netdev );
netdev_put ( netdev );
}