3
0
Fork 0
forked from mirrors/linux
kernel/drivers/gpu/drm/display
Nicolas Frattaroli be9b3f9a54 drm/connector: only call HDMI audio helper plugged cb if non-null
On driver remove, sound/soc/codecs/hdmi-codec.c calls the plugged_cb
with NULL as the callback function and codec_dev, as seen in its
hdmi_remove function.

The HDMI audio helper then happily tries calling said null function
pointer, and produces an Oops as a result.

Fix this by only executing the callback if fn is non-null. This means
the .plugged_cb and .plugged_cb_dev members still get appropriately
cleared.

Fixes: baf616647f ("drm/connector: implement generic HDMI audio helpers")
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250527-hdmi-audio-helper-remove-fix-v1-1-6cf77de364d8@collabora.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
2025-05-27 23:08:21 +03:00
..
drm_bridge_connector.c drm/bridge-connector: hook DisplayPort audio support 2025-04-07 15:49:19 +03:00
drm_display_helper_mod.c
drm_dp_aux_bus.c drm: display: Set fwnode for aux bus devices 2024-11-05 14:03:27 +01:00
drm_dp_aux_dev.c
drm_dp_cec.c drm/display: dp-cec: use new DCPD access helpers 2025-03-25 16:20:38 +02:00
drm_dp_dual_mode_helper.c drm/i915/lspcon: do not hardcode settle timeout 2025-01-27 14:54:46 -05:00
drm_dp_helper.c drm/dp: add option to disable zero sized address only transactions. 2025-05-19 07:14:45 +10:00
drm_dp_helper_internal.h drm/display: Make DisplayPort AUX Chardev Kconfig name consistent 2024-03-28 11:26:46 +01:00
drm_dp_mst_topology.c Merge drm/drm-next into drm-misc-next 2025-04-07 14:35:48 +02:00
drm_dp_mst_topology_internal.h
drm_dp_tunnel.c drm/display: dp-tunnel: use new DCPD access helpers 2025-03-25 16:20:38 +02:00
drm_dsc_helper.c drm/display/dsc: Add a helper to dump the DSC configuration 2024-07-03 18:05:12 +03:00
drm_hdcp_helper.c
drm_hdmi_audio_helper.c drm/connector: only call HDMI audio helper plugged cb if non-null 2025-05-27 23:08:21 +03:00
drm_hdmi_helper.c drm/display: hdmi: provide central data authority for ACR params 2025-04-15 14:05:14 +03:00
drm_hdmi_state_helper.c drm/display: Update comment on hdmi hotplug helper 2025-03-25 18:40:12 +00:00
drm_scdc_helper.c
Kconfig drm/display/hdmi: implement hotplug functions 2025-01-04 08:47:11 +02:00
Makefile drm/connector: implement generic HDMI audio helpers 2025-01-04 08:47:11 +02:00