mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
net: enetc: fix an issue about leak system resources
the related system resources were not released when enetc_hw_alloc()
return error in the enetc_pci_mdio_probe(), add iounmap() for error
handling label "err_hw_alloc" to fix it.
Fixes: 6517798dd3
("enetc: Make MDIO accessors more generic and export to include/linux/fsl")
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
40e473071d
commit
d975cb7ea9
1 changed files with 1 additions and 1 deletions
|
@ -74,8 +74,8 @@ err_pci_mem_reg:
|
|||
pci_disable_device(pdev);
|
||||
err_pci_enable:
|
||||
err_mdiobus_alloc:
|
||||
iounmap(port_regs);
|
||||
err_hw_alloc:
|
||||
iounmap(port_regs);
|
||||
err_ioremap:
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue