From: Peter Chen Date: Fri, 1 Jul 2016 09:41:59 +0000 (+0800) Subject: bus: vexpress-config: add missing of_node_put after calling of_parse_phandle X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=557e37c05f28bad113d65d584699e8d8f29f70a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git bus: vexpress-config: add missing of_node_put after calling of_parse_phandle of_node_put needs to be called when the device node which is got from of_parse_phandle has finished using. Cc: Lorenzo Pieralisi Acked-by: Liviu Dudau Signed-off-by: Peter Chen Signed-off-by: Sudeep Holla --- diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index c3cb76b363c6..9efdf1de4035 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -178,6 +178,7 @@ static int vexpress_config_populate(struct device_node *node) parent = class_find_device(vexpress_config_class, NULL, bridge, vexpress_config_node_match); + of_node_put(bridge); if (WARN_ON(!parent)) return -ENODEV;