commit | 02222bf4f0a27f6eba66d1f597cdb5daadd51829 | [log] [tgz] |
---|---|---|
author | Hangyu Hua <hbh25y@gmail.com> | Wed Mar 02 10:19:59 2022 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 13 21:00:59 2022 +0200 |
tree | 3d8dbfe81715dd0a7e903d2ef20196fb71df99ad | |
parent | fd416c3f5a4c0e85abb443bd31b49e03d52ef07b [diff] |
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>