diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-12 13:23:50 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-07-14 18:22:22 +0200 |
commit | 842a8824274de3fbbc8e230355d5c75237453bf5 (patch) | |
tree | cecfda5c016b60c526972d4a7889fecd888d44ec /kernel/ksysfs.c | |
parent | Linux 4.7-rc1 (diff) | |
download | linux-842a8824274de3fbbc8e230355d5c75237453bf5.tar.xz linux-842a8824274de3fbbc8e230355d5c75237453bf5.zip |
regulator: act8865: Fix missing of_node_put() in act8865_pdata_from_dt()
This node pointer is returned by of_get_child_by_name() with
refcount incremented in this function. of_node_put() is missing
when exitting this function while invalid device type. Fix it
by move of_get_child_by_name() code after device type check.
Found by Coccinelle.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'kernel/ksysfs.c')
0 files changed, 0 insertions, 0 deletions