drm/vc4: hdmi: unlock mutex when device is unplugged
authorDanilo Krummrich <dakr@redhat.com>
Wed, 24 Aug 2022 16:13:24 +0000 (18:13 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 25 Aug 2022 07:44:25 +0000 (09:44 +0200)
commit227295df4e37de66b61bbb3d1f10436f0acd33cc
treef280fdb8b2d2933c1a78065b9d69cca7d82733ea
parent4d07b0bc403403438d9cf88450506240c5faf92f
drm/vc4: hdmi: unlock mutex when device is unplugged

In vc4_hdmi_encoder_{pre,post}_crtc_enable() commit cd00ed5187bf
("drm/vc4: hdmi: Protect device resources after removal") missed to
unlock the mutex before returning due to drm_dev_enter() indicating the
device being unplugged.

Fixes: cd00ed5187bf ("drm/vc4: hdmi: Protect device resources after removal")
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220824161327.330627-2-dakr@redhat.com
drivers/gpu/drm/vc4/vc4_hdmi.c