]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: add missing of_node_put() in opal_export_attrs()
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 6 Sep 2022 14:17:03 +0000 (14:17 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Sep 2022 04:22:47 +0000 (14:22 +1000)
commit990e3d169d6ddc95952c4782b0120cbb4ca6c6be
tree4cc946bb9dfde6b8326fac867dd05e5dcdb2e346
parent7a576ebc4a28d836ac08b80a07fee701bec5ec9e
powerpc/powernv: add missing of_node_put() in opal_export_attrs()

After using 'np' returned by of_find_node_by_path(), of_node_put()
need be called to decrease the refcount.

Fixes: 48409f391e78 ("powerpc/powernv: Add OPAL exports attributes to sysfs")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220906141703.118192-1-zhengyongjun3@huawei.com
arch/powerpc/platforms/powernv/opal.c