mirror of
https://github.com/xcat2/xNBA.git
synced 2025-08-13 23:10:17 +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:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user