summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
Diffstat (limited to 'Misc')
0 files changed, 0 insertions, 0 deletions
91e67510864'>1a695a905c18548062509178b98bc91e67510864 (diff)
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