Hangyu Hua 02222bf4f0 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 21:00:59 +02:00
..
2020-10-22 13:13:57 -07:00
2022-01-27 10:54:21 +01:00
2020-08-07 18:48:15 -07:00
2020-10-08 21:17:12 +11:00
2022-04-08 14:39:54 +02:00
2020-10-08 21:17:12 +11:00
2020-07-27 00:01:30 +10:00
2020-06-05 12:39:30 -07:00
2020-05-26 23:36:57 +10:00
2020-06-05 12:39:30 -07:00
2020-10-23 10:06:38 -07:00
2020-05-26 23:36:51 +10:00