mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 09:32:33 +03:00
[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:
@@ -987,6 +987,7 @@ static int realtek_probe ( struct pci_device *pci ) {
|
|||||||
err_nvs_read:
|
err_nvs_read:
|
||||||
realtek_reset ( rtl );
|
realtek_reset ( rtl );
|
||||||
err_reset:
|
err_reset:
|
||||||
|
iounmap ( rtl->regs );
|
||||||
netdev_nullify ( netdev );
|
netdev_nullify ( netdev );
|
||||||
netdev_put ( netdev );
|
netdev_put ( netdev );
|
||||||
err_alloc:
|
err_alloc:
|
||||||
@@ -1013,6 +1014,7 @@ static void realtek_remove ( struct pci_device *pci ) {
|
|||||||
realtek_reset ( rtl );
|
realtek_reset ( rtl );
|
||||||
|
|
||||||
/* Free network device */
|
/* Free network device */
|
||||||
|
iounmap ( rtl->regs );
|
||||||
netdev_nullify ( netdev );
|
netdev_nullify ( netdev );
|
||||||
netdev_put ( netdev );
|
netdev_put ( netdev );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user