diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-04-25 19:27:07 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-03 20:43:35 +1000 |
commit | 589b1f7e4b0db4c31cef3b55f7514857bfc4b093 (patch) | |
tree | 52a7c5e4b693f56bfff0f94112a96c2470a6dc02 /arch/powerpc/platforms/powernv/opal-imc.c | |
parent | c5cbde2df3951c59dc099dd2e452b534cabd0eb8 (diff) |
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>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-imc.c')
0 files changed, 0 insertions, 0 deletions