]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xics: fix refcount leak in icp_opal_init()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Sat, 2 Apr 2022 01:34:19 +0000 (01:34 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:30 +0000 (15:58 +1000)
commit098ed441478477a4c945fce4193d12d9a26c070c
treed26986b7c526e8cd9ab336964ccee98fb8c7d279
parentbd91283e16d16cd848302728d27304bcad2ca9ba
powerpc/xics: fix refcount leak in icp_opal_init()

The of_find_compatible_node() function returns a node pointer with
refcount incremented, use of_node_put() on it when done.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220402013419.2410298-1-lv.ruyi@zte.com.cn
arch/powerpc/sysdev/xics/icp-opal.c