Re: [PATCH] drm/connector: only call HDMI audio helper plugged cb if non-null

2025-05-27 Thread Dmitry Baryshkov
On Tue, 27 May 2025 19:57:08 +0200, Nicolas Frattaroli wrote: > 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 >

Re: [PATCH] drm/connector: only call HDMI audio helper plugged cb if non-null

2025-05-27 Thread Dmitry Baryshkov
On 27/05/2025 20:57, Nicolas Frattaroli wrote: 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

[PATCH] drm/connector: only call HDMI audio helper plugged cb if non-null

2025-05-27 Thread Nicolas Frattaroli
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