Tag: 842a8824274de3fbbc8e230355d5c75237453bf5

regulator: act8865: Fix missing of_node_put() in act8865_pdata_from_dt()

Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> 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 Signed-off-by: Mark Brown — drivers/regulator/act8865-regulator.c | 12 ++++++—— 1 file changed, …

Continue reading