|
@@ -268,6 +268,7 @@ static int skeleton_probe ( struct pci_device *pci ) {
|
268
|
268
|
err_mii_reset:
|
269
|
269
|
skeleton_reset ( skel );
|
270
|
270
|
err_reset:
|
|
271
|
+ iounmap ( skel->regs );
|
271
|
272
|
netdev_nullify ( netdev );
|
272
|
273
|
netdev_put ( netdev );
|
273
|
274
|
err_alloc:
|
|
@@ -290,6 +291,7 @@ static void skeleton_remove ( struct pci_device *pci ) {
|
290
|
291
|
skeleton_reset ( skel );
|
291
|
292
|
|
292
|
293
|
/* Free network device */
|
|
294
|
+ iounmap ( skel->regs );
|
293
|
295
|
netdev_nullify ( netdev );
|
294
|
296
|
netdev_put ( netdev );
|
295
|
297
|
}
|