|
@@ -987,6 +987,7 @@ static int realtek_probe ( struct pci_device *pci ) {
|
987
|
987
|
err_nvs_read:
|
988
|
988
|
realtek_reset ( rtl );
|
989
|
989
|
err_reset:
|
|
990
|
+ iounmap ( rtl->regs );
|
990
|
991
|
netdev_nullify ( netdev );
|
991
|
992
|
netdev_put ( netdev );
|
992
|
993
|
err_alloc:
|
|
@@ -1013,6 +1014,7 @@ static void realtek_remove ( struct pci_device *pci ) {
|
1013
|
1014
|
realtek_reset ( rtl );
|
1014
|
1015
|
|
1015
|
1016
|
/* Free network device */
|
|
1017
|
+ iounmap ( rtl->regs );
|
1016
|
1018
|
netdev_nullify ( netdev );
|
1017
|
1019
|
netdev_put ( netdev );
|
1018
|
1020
|
}
|