1
0
Fork 0
alistair23-linux/drivers/gpu/drm/rcar-du
Julia Lawall 4c6d8fc20b drm: rcar-du: add missing of_node_put
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>
2019-02-08 02:25:55 +02:00
..
Kconfig drm: rcar-du: Convert to SPDX identifiers 2018-09-14 13:54:03 +03: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 drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rcar_du_crtc.h drm: rcar-du: Remove inclusion of drmP.h 2019-01-14 03:51:33 +02:00
rcar_du_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rcar_du_drv.h drm: rcar-du: Remove inclusion of drmP.h 2019-01-14 03:51:33 +02:00
rcar_du_encoder.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rcar_du_encoder.h drm: rcar-du: Remove inclusion of drmP.h 2019-01-14 03:51:33 +02:00
rcar_du_group.c drm: rcar-du: Disable unused DPAD outputs 2019-01-14 03:51:27 +02:00
rcar_du_group.h drm: rcar-du: Convert to SPDX identifiers 2018-09-14 13:54:03 +03:00
rcar_du_kms.c drm: rcar-du: add missing of_node_put 2019-02-08 02:25:55 +02:00
rcar_du_kms.h drm: rcar-du: Convert to SPDX identifiers 2018-09-14 13:54:03 +03:00
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: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7791.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7793.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7795.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_of_lvds_r8a7796.dts drm: rcar-du: Convert live DT patches to sugar syntax 2019-01-14 03:51:17 +02:00
rcar_du_plane.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rcar_du_plane.h drm: rcar-du: Remove inclusion of drmP.h 2019-01-14 03:51:33 +02:00
rcar_du_regs.h drm: rcar-du: Write ESCR and OTAR as CRTC registers 2018-09-15 17:28:31 +03:00
rcar_du_vsp.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rcar_du_vsp.h drm: rcar-du: Remove inclusion of drmP.h 2019-01-14 03:51:33 +02:00
rcar_dw_hdmi.c drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
rcar_lvds.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rcar_lvds_regs.h drm: rcar-du: lvds: D3/E3 support 2018-09-25 00:40:56 +03:00