From: Wan Jiabing <hidden> Date: 2021-10-18 01:54:55
Fix following coccicheck warning:
./arch/powerpc/kexec/file_load_64.c:698:1-22: WARNING: Function
for_each_node_by_type should have of_node_put() before goto
Early exits from for_each_node_by_type should decrement the
node reference counter.
Signed-off-by: Wan Jiabing <redacted>
---
arch/powerpc/kexec/file_load_64.c | 1 +
1 file changed, 1 insertion(+)
@@ -700,6 +700,7 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)if(ret){pr_err("Failed to set linux,usable-memory property for %s node",dn->full_name);+of_node_put(dn);gotoout;}}
From: Hari Bathini <hbathini@linux.ibm.com> Date: 2021-10-18 07:08:00
On 18/10/21 7:24 am, Wan Jiabing wrote:
Fix following coccicheck warning:
./arch/powerpc/kexec/file_load_64.c:698:1-22: WARNING: Function
for_each_node_by_type should have of_node_put() before goto
Early exits from for_each_node_by_type should decrement the
node reference counter.
Signed-off-by: Wan Jiabing <redacted>
Thanks for fixing this!
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
@@ -700,6 +700,7 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)if(ret){pr_err("Failed to set linux,usable-memory property for %s node",dn->full_name);+of_node_put(dn);gotoout;}}
From: Michael Ellerman <hidden> Date: 2021-11-02 11:39:40
On Sun, 17 Oct 2021 21:54:16 -0400, Wan Jiabing wrote:
Fix following coccicheck warning:
./arch/powerpc/kexec/file_load_64.c:698:1-22: WARNING: Function
for_each_node_by_type should have of_node_put() before goto
Early exits from for_each_node_by_type should decrement the
node reference counter.
[...]