Re: [PATCH] csky: fix refcount leak in setup_smp()

2018-12-27 Thread Guo Ren
Hi Li, On Thu, Dec 27, 2018 at 11:27:11AM -0500, Yangtao Li wrote: > The of_find_node_by_type() returns a node pointer with refcount > incremented, but there is the lack of use of the of_node_put() when > done. Add the missing of_node_put() to release the refcount. > > Signed-off-by: Yangtao Li

[PATCH] csky: fix refcount leak in setup_smp()

2018-12-27 Thread Yangtao Li
The of_find_node_by_type() returns a node pointer with refcount incremented, but there is the lack of use of the of_node_put() when done. Add the missing of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/csky/kernel/smp.c | 10 -- 1 file changed, 8 insertions(+),