Re: [PATCH] soc: renesas: rcar-sysc: fix memory leak in rcar_sysc_pd_init

2019-09-26 Thread Geert Uytterhoeven
On Thu, Sep 26, 2019 at 10:23 AM Simon Horman wrote: > On Wed, Sep 25, 2019 at 04:03:53PM -0500, Navid Emamdoost wrote: > > In rcar_sysc_pd_init when looping over info->areas errors may happen but > > the error handling path does not clean up the intermediate allocated > > memories. > > > > This

Re: [PATCH] soc: renesas: rcar-sysc: fix memory leak in rcar_sysc_pd_init

2019-09-26 Thread Simon Horman
Ni Navid, thanks for your patch. On Wed, Sep 25, 2019 at 04:03:53PM -0500, Navid Emamdoost wrote: > In rcar_sysc_pd_init when looping over info->areas errors may happen but > the error handling path does not clean up the intermediate allocated > memories. > > This patch changes the error

[PATCH] soc: renesas: rcar-sysc: fix memory leak in rcar_sysc_pd_init

2019-09-25 Thread Navid Emamdoost
In rcar_sysc_pd_init when looping over info->areas errors may happen but the error handling path does not clean up the intermediate allocated memories. This patch changes the error handling path in major and a little the loop itself. Inside the loop if an error happens the current pd will be