Commit 86fa80c5 authored by Ben Skeggs's avatar Ben Skeggs Committed by Luis Henriques

drm/nouveau/kms: take mode_config mutex in connector hotplug path

commit 0a882cad upstream.

fdo#93634
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 10563759
...@@ -954,10 +954,13 @@ nouveau_connector_hotplug_work(struct work_struct *work) ...@@ -954,10 +954,13 @@ nouveau_connector_hotplug_work(struct work_struct *work)
NV_DEBUG(drm, "%splugged %s\n", plugged ? "" : "un", name); NV_DEBUG(drm, "%splugged %s\n", plugged ? "" : "un", name);
mutex_lock(&drm->dev->mode_config.mutex);
if (plugged) if (plugged)
drm_helper_connector_dpms(connector, DRM_MODE_DPMS_ON); drm_helper_connector_dpms(connector, DRM_MODE_DPMS_ON);
else else
drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF); drm_helper_connector_dpms(connector, DRM_MODE_DPMS_OFF);
mutex_unlock(&drm->dev->mode_config.mutex);
drm_helper_hpd_irq_event(connector->dev); drm_helper_hpd_irq_event(connector->dev);
} }
......
Markdown is supported
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