commit | 589b1f7e4b0db4c31cef3b55f7514857bfc4b093 | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Wed Apr 25 19:27:07 2018 +0800 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Sun Jun 03 20:43:35 2018 +1000 |
tree | 52a7c5e4b693f56bfff0f94112a96c2470a6dc02 | |
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>