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

2020-04-29 Thread Dejin Zheng
On Wed, Apr 29, 2020 at 04:15:56PM +0200, Nicolas Ferre wrote: > On 29/04/2020 at 15:56, Dejin Zheng wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > A call of the function macb_init() can fail in the function > > fu540_c000_init. T

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

2020-04-29 Thread Nicolas Ferre
On 29/04/2020 at 15:56, Dejin Zheng wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe 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_resou

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

2020-04-29 Thread Dejin Zheng
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 Reviewed-by