Re: [PATCH net v3] net: macb: fix an issue about leak related system resources

From: David Miller
Date: Sun May 03 2020 - 19:02:45 EST


From: Dejin Zheng <zhengdejin5@xxxxxxxxx>
Date: Sun, 3 May 2020 20:32:26 +0800

> A call of the function macb_init() can fail in the function
> fu540_c000_init. The related system resources were not released
> then. use devm_platform_ioremap_resource() to replace ioremap()
> to fix it.
>
> Fixes: c218ad559020ff9 ("macb: Add support for SiFive FU540-C000")
> Cc: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Reviewed-by: Yash Shah <yash.shah@xxxxxxxxxx>
> Suggested-by: Nicolas Ferre <nicolas.ferre@xxxxxxxxxxxxx>
> Suggested-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Signed-off-by: Dejin Zheng <zhengdejin5@xxxxxxxxx>

Applied and queued up for -stable, thanks.