Re: [PATCH v2] powerpc: kernel: fix refcount leak in format_show()

2022-03-12 Thread Michael Ellerman
On Wed, 2 Mar 2022 10:19:59 +0800, Hangyu Hua wrote: > Refcount leak will happen when format_show returns failure in multiple > cases. Unified management of of_node_put can fix this problem. > > Applied to powerpc/next. [1/1] powerpc: kernel: fix refcount leak in format_show()

Re: [PATCH v2] powerpc: kernel: fix refcount leak in format_show()

2022-03-06 Thread Hangyu Hua
Any further suggestions for this patch? guys. Thanks. On 2022/3/2 10:19, Hangyu Hua wrote: Refcount leak will happen when format_show returns failure in multiple cases. Unified management of of_node_put can fix this problem. Signed-off-by: Hangyu Hua --- v2: 1. change the title and

[PATCH v2] powerpc: kernel: fix refcount leak in format_show()

2022-03-01 Thread Hangyu Hua
Refcount leak will happen when format_show returns failure in multiple cases. Unified management of of_node_put can fix this problem. Signed-off-by: Hangyu Hua --- v2: 1. change the title and description information. 2. fix all possible refcount leak. arch/powerpc/kernel/secvar-sysfs.c | 9