mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-16 18:48:12 +00: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:
parent
ac8107854f
commit
e982a7e3c4
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user