powerpc/secvar: fix refcount leak in format_show()
[ Upstream commit d601fd24 ] 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>
Loading