From: Peter Chen Date: Mon, 4 Jul 2016 08:49:50 +0000 (+0800) Subject: drm/msm: add missing of_node_put after calling of_parse_phandle X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2ca41c176a5d2197572153bf543a3f758c13a4d3;p=linux-beck.git drm/msm: 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. Signed-off-by: Peter Chen [rebased on top of Archit's DT rework, so looses one hunk] Signed-off-by: Rob Clark --- diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9cfa348fd2bb..26f859ec24b3 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -294,6 +294,7 @@ static int msm_init_vram(struct drm_device *dev) if (node) { struct resource r; ret = of_address_to_resource(node, 0, &r); + of_node_put(node); if (ret) return ret; size = r.end - r.start;