linux-uconsole/drivers/gpu/drm/rcar-du
Julia Lawall 322a55a56a drm: rcar-du: add missing of_node_put
[ Upstream commit 4c6d8fc20b ]

Add an of_node_put when the result of of_graph_get_remote_port_parent is
not available.

Add a second of_node_put if no encoder is selected (encoder remains NULL).

The semantic match that finds the first problem is as follows
(http://coccinelle.lip6.fr):

// <smpl>
@r exists@
local idexpression e;
expression x;
@@
e = of_graph_get_remote_port_parent(...);
... when != x = e
    when != true e == NULL
    when != of_node_put(e)
    when != of_fwnode_handle(e)
(
return e;
|
*return ...;
)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-05 22:33:10 +02:00
..
Kconfig drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
Makefile drm: rcar-du: disable dtc graph-endpoint warnings on DT overlays 2018-05-15 08:23:46 -05:00
rcar_du_crtc.c media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
rcar_du_crtc.h media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
rcar_du_drv.c drm: rcar-du: Add R8A77965 support 2018-05-05 17:11:20 +03:00
rcar_du_drv.h Merge branch 'drm/du/next' of git://linuxtv.org/pinchartl/media into drm-next 2018-05-15 15:23:48 +10:00
rcar_du_encoder.c drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_encoder.h drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_group.c drm: rcar-du: Allow DU groups to work with hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_group.h drm: rcar-du: Allow DU groups to work with hardware indexing 2018-05-05 17:11:19 +03:00
rcar_du_kms.c drm: rcar-du: add missing of_node_put 2019-04-05 22:33:10 +02:00
rcar_du_kms.h
rcar_du_of.c drm: rcar-du: of: Include header to define prototypes 2018-05-05 17:11:15 +03:00
rcar_du_of.h drm: rcar-du: Fix rcar_du_of_init() stub 2018-05-17 15:03:32 +10:00
rcar_du_of_lvds_r8a7790.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7791.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7793.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7795.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of_lvds_r8a7796.dts drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_plane.c drm/rcar-du: Convert to the new generic alpha property 2018-04-16 21:20:59 +02:00
rcar_du_plane.h drm/rcar-du: Convert to the new generic alpha property 2018-04-16 21:20:59 +02:00
rcar_du_regs.h drm: rcar-du: Use the correct naming for ODPM fields in DEFR6 2018-05-05 17:11:18 +03:00
rcar_du_vsp.c media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
rcar_du_vsp.h drm/rcar-du: Convert to the new generic alpha property 2018-04-16 21:20:59 +02:00
rcar_dw_hdmi.c drm/rcar-du: dw-hdmi: Fix compilation 2018-02-16 19:04:54 +01:00
rcar_lvds.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
rcar_lvds_regs.h drm: rcar-du: lvds: Fix LVDCR1 for R-Car gen3 2018-02-14 18:17:02 +02:00