hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_ph...
authorPeter Chen <peter.chen@nxp.com>
Tue, 5 Jul 2016 02:11:04 +0000 (10:11 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 6 Sep 2016 14:24:32 +0000 (08:24 -0600)
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.

Cc: linux-arm-kernel@lists.infradead.org
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/of_coresight.c

index 18f1c8c4776b33fda3aecff8605d472d9d27ae10..629e031b745651f136916d482506b953dc12597a 100644 (file)
@@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
                        break;
                }
        }
+       of_node_put(dn);
 
        return pdata;
 }
This page took 0.024727 seconds and 5 git commands to generate.