mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-25 19:08:35 +00:00
[myson] 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
93f1d69a77
commit
76b4323b4d
@ -626,6 +626,7 @@ static int myson_probe ( struct pci_device *pci ) {
|
||||
err_register_netdev:
|
||||
myson_reset ( myson );
|
||||
err_reset:
|
||||
iounmap ( myson->regs );
|
||||
netdev_nullify ( netdev );
|
||||
netdev_put ( netdev );
|
||||
err_alloc:
|
||||
@ -648,6 +649,7 @@ static void myson_remove ( struct pci_device *pci ) {
|
||||
myson_reset ( myson );
|
||||
|
||||
/* Free network device */
|
||||
iounmap ( myson->regs );
|
||||
netdev_nullify ( netdev );
|
||||
netdev_put ( netdev );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user