linux/drivers/gpu/drm/vc4
Maxime Ripard 44fe9f90eb
drm/vc4: hdmi: Only call into DRM framework if registered
Our hotplug handler will currently call the drm_kms_helper_hotplug_event
every time a hotplug interrupt is called.

However, since the device is registered after all the drivers have
finished their bind callback, we have a window between when we install
our interrupt handler and when drm_dev_register() is eventually called
where our handler can run and call drm_kms_helper_hotplug_event but the
device hasn't been registered yet, causing a null pointer dereference.

Fix this by making sure we only call drm_kms_helper_hotplug_event if our
device has been properly registered.

Fixes: f4790083c7 ("drm/vc4: hdmi: Rely on interrupts to handle hotplug")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210707095112.1469670-4-maxime@cerno.tech
2021-07-15 10:50:09 +02:00
..
Kconfig drm/vc4: hdmi: Register HDMI codec 2021-06-23 14:32:28 +02:00
Makefile drm/vc4: hdmi: Add PHY init and disable function 2020-09-07 18:06:04 +02:00
vc4_bo.c drm/vc4: Initialize vc4_drm_driver with CMA helper defaults 2021-01-15 10:39:05 +01:00
vc4_crtc.c drm/vc4: crtc: Lookup the encoder from the register at boot 2021-05-24 14:42:07 +02:00
vc4_debugfs.c drm/vc4/vc4_debugfs: Demote non-conformant kernel-doc headers 2020-11-18 11:51:58 +01:00
vc4_dpi.c
vc4_drv.c drm/aperture: Pass DRM driver structure instead of driver name 2021-07-01 11:11:55 +02:00
vc4_drv.h drm/vc4: fix argument ordering in vc4_crtc_get_margins() 2021-04-29 12:18:54 +02:00
vc4_dsi.c drm/vc4: dsi: Add configuration for BCM2711 DSI1 2020-12-07 10:33:33 +01:00
vc4_fence.c
vc4_gem.c drm/vc4: remove unneeded variable: "ret" 2021-02-09 17:16:57 +01:00
vc4_hdmi_phy.c drm/vc4: hdmi: Use the connector state pixel rate for the PHY 2020-12-16 10:11:48 +01:00
vc4_hdmi_regs.h drm/vc4: hdmi: Enable the scrambler 2021-05-24 14:43:36 +02:00
vc4_hdmi.c drm/vc4: hdmi: Only call into DRM framework if registered 2021-07-15 10:50:09 +02:00
vc4_hdmi.h drm/vc4: hdmi: Register HDMI codec 2021-06-23 14:32:28 +02:00
vc4_hvs.c drm pull for 5.12-rc1 2021-02-21 14:44:44 -08:00
vc4_irq.c
vc4_kms.c drm/vc4: Don't set struct drm_device.irq_enabled 2021-06-29 15:40:52 +02:00
vc4_packet.h
vc4_perfmon.c drm/vc4: replace idr_init() by idr_init_base() 2020-11-06 11:48:43 +01:00
vc4_plane.c Merge drm/drm-fixes into drm-next 2021-04-13 23:15:09 +02:00
vc4_qpu_defines.h
vc4_regs.h drm/vc4: hdmi: Set HDMI_MAI_FMT 2021-06-23 14:32:27 +02:00
vc4_render_cl.c
vc4_trace_points.c
vc4_trace.h
vc4_txp.c drm/vc4: txp: Properly set the possible_crtcs mask 2021-05-24 14:41:28 +02:00
vc4_v3d.c drm/vc4/vc4_v3d: Demote non-conformant kernel-doc headers 2020-11-18 11:51:58 +01:00
vc4_validate_shaders.c
vc4_validate.c
vc4_vec.c drm/vc4: Separate VEC compatible variants 2021-05-24 13:52:33 +02:00