[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:
parent
ac8107854f
commit
e982a7e3c4
|
@ -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