diff options
author | Wen Yang | 2019-03-26 11:29:51 +0100 |
---|---|---|
committer | Michael Ellerman | 2019-04-20 14:02:35 +0200 |
commit | cc76404feaed597bb4f5234d34d3f49e2d1139bf (patch) | |
tree | 44d7a02ed2d418b2a89c61911c8ff2b893649386 /fs/cramfs/Kconfig | |
parent | powerpc/pseries: hwpoison the pages upon hitting UE (diff) | |
download | kernel-qcow2-linux-cc76404feaed597bb4f5234d34d3f49e2d1139bf.tar.gz kernel-qcow2-linux-cc76404feaed597bb4f5234d34d3f49e2d1139bf.tar.xz kernel-qcow2-linux-cc76404feaed597bb4f5234d34d3f49e2d1139bf.zip |
powerpc/8xx: Fix possible device node reference leak
The call to of_find_compatible_node() returns a node pointer with
refcount incremented thus it must be explicitly decremented after the
last usage.
irq_domain_add_linear() also calls of_node_get() to increase refcount,
so irq_domain() will not be affected when it is released.
Detected by coccinelle.
Fixes: a8db8cf0d894 ("irq_domain: Replace irq_alloc_host() with revmap-specific initializers")
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Suggested-by: Christophe Leroy <christophe.leroy@c-s.fr>
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Peng Hao <peng.hao2@zte.com.cn>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'fs/cramfs/Kconfig')
0 files changed, 0 insertions, 0 deletions