Fix a NULL pointer dereference discovered while unloading a DRM module and provide a test to make sure the helper works as expected in case the connector's CRTC is shut down.
Signed-off-by: Cristian Ciocaltea <[email protected]> --- Changes in v3: - Drop the unnecessary test case changing bpc (Maxime) - Link to v2: https://lore.kernel.org/r/[email protected] Changes in v2: - Collected R-b tags from Dmitry and Angelo - Add a 2nd patch providing a couple of KUnit tests (Maxime) - Link to v1: https://lore.kernel.org/r/[email protected] --- Cristian Ciocaltea (2): drm/connector: hdmi: Handle NULL display mode in state check helper drm/tests: hdmi: Add connector's CRTC deactivation test drivers/gpu/drm/display/drm_hdmi_state_helper.c | 3 + drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 76 ++++++++++++++++++++++ 2 files changed, 79 insertions(+) --- base-commit: 938fbb16aba8f7b88e0fdcf56f315a5bbad41aad change-id: 20250107-hdmi-conn-null-mode-be0c5e49ed8c
