Skip to content
Unverified Commit 0a99962c authored by José Expósito's avatar José Expósito Committed by Maxime Ripard
Browse files

drm/vc4: hdmi: Fix pointer dereference before check

Commit 6bed2ea3 ("drm/vc4: hdmi: Reset link on hotplug") introduced
the vc4_hdmi_reset_link() function. This function dereferences the
"connector" pointer before checking whether it is NULL or not.

Rework variable assignment to avoid this issue.

Fixes: 6bed2ea3

 ("drm/vc4: hdmi: Reset link on hotplug")
Signed-off-by: default avatarJosé Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/20221110134752.238820-3-jose.exposito89@gmail.com
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent d2187508
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment