Re: [PATCH v1] soc: renesas: rcar-sysc:- Prevent resource leake and NULL-pointer error

2017-01-20 Thread Geert Uytterhoeven
Hi Arvind, On Fri, Jan 20, 2017 at 8:40 AM, Arvind Yadav wrote: > If rcar_sysc_pd_init will fail, Handle ERROR properly. > -Release memory > -Unmap I/O memory from kernel address space. > > In rcar_sysc_init, If ioremap_nocache will fail. It will return NULL. > Kernel can run into a NULL-pointe

[PATCH v1] soc: renesas: rcar-sysc:- Prevent resource leake and NULL-pointer error

2017-01-19 Thread Arvind Yadav
If rcar_sysc_pd_init will fail, Handle ERROR properly. -Release memory -Unmap I/O memory from kernel address space. In rcar_sysc_init, If ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. Signed-off-by: Arvind Yadav --- drivers/soc/renesas/rcar-sy