mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
[natsemi] Add missing iounmap()
Reported-by: Thomas Miletich <thomas.miletich@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -880,6 +880,7 @@ static int natsemi_probe ( struct pci_device *pci ) {
|
|||||||
err_hwaddr:
|
err_hwaddr:
|
||||||
natsemi_reset ( natsemi );
|
natsemi_reset ( natsemi );
|
||||||
err_reset:
|
err_reset:
|
||||||
|
iounmap ( natsemi->regs );
|
||||||
netdev_nullify ( netdev );
|
netdev_nullify ( netdev );
|
||||||
netdev_put ( netdev );
|
netdev_put ( netdev );
|
||||||
err_alloc:
|
err_alloc:
|
||||||
@@ -902,6 +903,7 @@ static void natsemi_remove ( struct pci_device *pci ) {
|
|||||||
natsemi_reset ( natsemi );
|
natsemi_reset ( natsemi );
|
||||||
|
|
||||||
/* Free network device */
|
/* Free network device */
|
||||||
|
iounmap ( natsemi->regs );
|
||||||
netdev_nullify ( netdev );
|
netdev_nullify ( netdev );
|
||||||
netdev_put ( netdev );
|
netdev_put ( netdev );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user