]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc/xics: Add missing of_node_put() in error path
authorYueHaibing <yuehaibing@huawei.com>
Wed, 25 Apr 2018 11:27:07 +0000 (19:27 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:35 +0000 (20:43 +1000)
commit589b1f7e4b0db4c31cef3b55f7514857bfc4b093
tree52a7c5e4b693f56bfff0f94112a96c2470a6dc02
parentc5cbde2df3951c59dc099dd2e452b534cabd0eb8
powerpc/xics: Add missing of_node_put() in error path

The device node obtained with of_find_compatible_node() should be
released by calling of_node_put().  But it was not released when
of_get_property() failed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
[mpe: Invert the sense of the if so we only need one return path]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xics/xics-common.c