Re: powerpc/xics: add missing of_node_put() in error path

2018-06-04 Thread Michael Ellerman
On Wed, 2018-04-25 at 11:27:07 UTC, YueHaibing wrote: > The device node obtained with of_find_compatible_node() should be > released by calling of_node_put(). But it was not released when > of_get_property() failed. > > Signed-off-by: YueHaibing Applied to powerpc next, thanks.

[PATCH] powerpc/xics: add missing of_node_put() in error path

2018-04-25 Thread YueHaibing
The device node obtained with of_find_compatible_node() should be released by calling of_node_put(). But it was not released when of_get_property() failed. Signed-off-by: YueHaibing --- arch/powerpc/sysdev/xics/xics-common.c | 3 +++ 1 file changed, 3 insertions(+) diff