linux/drivers/gpu/drm/rcar-du
Laurent Pinchart 643ca198aa drm: rcar-du: lvds: Fix crash in .atomic_check when disabling connector
The connector .atomic_check() handler can be called with a NULL crtc
pointer in the connector state when the connector gets disabled
explicitly (through performing a legacy mode set or setting the
connector's CRTC_ID property to 0). This causes a crash as the crtc
pointer is dereferenced without any check.

Fix it by returning from the .atomic_check() handler when then crtc
pointer is NULL, as there is no check to be performed when the connector
gets disabled.

Fixes: c6a27fa41f ("drm: rcar-du: Convert LVDS encoder code to bridge driver")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
2018-05-20 10:16:59 +03:00
..
Kconfig drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
Makefile drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_crtc.c drm: rcar-du: Calculate DPLLCR to be more small jitter 2018-02-14 18:05:25 +02:00
rcar_du_crtc.h drm: rcar-du: Repair vblank for DRM page flips using the VSP 2017-08-03 16:17:30 +03:00
rcar_du_drv.c drm: rcar-du: Add R8A77970 support 2018-03-07 19:30:05 +02:00
rcar_du_drv.h drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02: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: Configure DPAD0 routing through last group on Gen3 2017-08-03 16:17:24 +03:00
rcar_du_group.h drm: rcar-du: Restart the DU group when a plane source changes 2016-02-20 02:58:55 +02:00
rcar_du_kms.c drm: rcar-du: Convert LVDS encoder code to bridge driver 2018-03-07 18:06:49 +02:00
rcar_du_kms.h drm/rcar-du: Update copyright notice 2014-09-15 11:34:06 +03: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_of.c drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_of.h drm: rcar-du: Fix legacy DT to create LVDS encoder nodes 2018-03-07 18:06:41 +02:00
rcar_du_plane.c drm: Don't pass clip to drm_atomic_helper_check_plane_state() 2018-03-05 20:48:25 +02:00
rcar_du_plane.h drm: rcar-du: Share plane atomic check code between Gen2 and Gen3 2017-12-04 13:04:11 +02:00
rcar_du_regs.h drm: rcar-du: Add DPLL support 2017-04-04 17:04:19 +03:00
rcar_du_vsp.c drm: rcar-du: Clip planes to screen boundaries 2017-12-04 18:38:31 +02:00
rcar_du_vsp.h drm: rcar-du: Remove zpos field from rcar_du_vsp_plane_state structure 2018-02-14 18:05:24 +02:00
rcar_dw_hdmi.c drm/rcar-du: dw-hdmi: Fix compilation 2018-02-16 19:04:54 +01:00
rcar_lvds_regs.h drm: rcar-du: lvds: Fix LVDCR1 for R-Car gen3 2018-02-14 18:17:02 +02:00
rcar_lvds.c drm: rcar-du: lvds: Fix crash in .atomic_check when disabling connector 2018-05-20 10:16:59 +03:00