]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/icp-hv: Fix missing of_node_put() in success path
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 4 Jul 2018 08:03:27 +0000 (10:03 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Aug 2020 15:31:31 +0000 (01:31 +1000)
commit32857a5487fe5b434148361df6d9dacb66316895
tree0dd85230795b5d7f815d616584623a25d6964740
parent5d78b6f6b528ab590c6e65612a3dcccbd1338b8a
powerpc/icp-hv: Fix missing of_node_put() in success path

Both of_find_compatible_node() and of_find_node_by_type() will return
a refcounted node on success - thus for the success path the node must
be explicitly released with a of_node_put().

Fixes: 255d5ac87ad7 ("powerpc/xics: Rewrite XICS driver")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1530691407-3991-1-git-send-email-hofrat@osadl.org
arch/powerpc/sysdev/xics/icp-hv.c