hwtracing: coresight: of_coresight: add missing of_node_put after calling of_parse_ph...
authorPeter Chen <peter.chen@nxp.com>
Thu, 25 Aug 2016 21:19:04 +0000 (15:19 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 11:05:43 +0000 (13:05 +0200)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/of_coresight.c

index 18f1c8c..629e031 100644 (file)
@@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
                        break;
                }
        }
+       of_node_put(dn);
 
        return pdata;
 }