mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[skel] 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
76b4323b4d
commit
d32aac88ef
@ -268,6 +268,7 @@ static int skeleton_probe ( struct pci_device *pci ) {
|
||||
err_mii_reset:
|
||||
skeleton_reset ( skel );
|
||||
err_reset:
|
||||
iounmap ( skel->regs );
|
||||
netdev_nullify ( netdev );
|
||||
netdev_put ( netdev );
|
||||
err_alloc:
|
||||
@ -290,6 +291,7 @@ static void skeleton_remove ( struct pci_device *pci ) {
|
||||
skeleton_reset ( skel );
|
||||
|
||||
/* Free network device */
|
||||
iounmap ( skel->regs );
|
||||
netdev_nullify ( netdev );
|
||||
netdev_put ( netdev );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user