Hangyu Hua 2a71e3ecd8 powerpc/secvar: fix refcount leak in format_show()
[ Upstream commit d601fd24e6964967f115f036a840f4f28488f63f ]

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 <hbh25y@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220302021959.10959-1-hbh25y@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 20:59:08 +02:00
..
2021-04-30 12:22:28 -07:00
2021-09-03 22:54:12 +10:00
2022-01-27 11:04:57 +01:00
2020-08-07 18:48:15 -07:00
2021-09-03 11:22:50 -07:00
2020-12-04 01:01:09 +11:00
2021-09-03 11:22:50 -07:00
2022-04-08 14:22:57 +02:00
2021-04-30 11:20:40 -07:00
2021-09-03 15:33:47 -07:00
2021-02-09 00:10:50 +11:00
2021-11-25 09:48:44 +01:00
2021-09-03 22:54:12 +10:00
2021-08-19 09:02:55 +09:00