Re: [PATCH net v1] net: enetc: fix an issue about leak system resources

From: David Miller
Date: Mon May 04 2020 - 13:52:37 EST


From: Dejin Zheng <zhengdejin5@xxxxxxxxx>
Date: Mon, 4 May 2020 20:01:27 +0800

> 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: 6517798dd3432a ("enetc: Make MDIO accessors more generic and export to include/linux/fsl")
> Cc: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Signed-off-by: Dejin Zheng <zhengdejin5@xxxxxxxxx>

Applied, thank you.