drm/i915: Use mode_config.mutex in ironlake_panel_vdd_work
authorKeith Packard <keithp@keithp.com>
Mon, 31 Oct 2011 18:30:10 +0000 (11:30 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 1 Nov 2011 16:14:56 +0000 (09:14 -0700)
Use of the struct_mutex is not correct for locking in mode setting paths.

Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_dp.c

index fc1a0832af4fed4a131c8611c4a1e3f3fc0e655b..7259034b33d1d477dc36e10c433420f616f04fed 100644 (file)
@@ -971,9 +971,9 @@ static void ironlake_panel_vdd_work(struct work_struct *__work)
                                                 struct intel_dp, panel_vdd_work);
        struct drm_device *dev = intel_dp->base.base.dev;
 
-       mutex_lock(&dev->struct_mutex);
+       mutex_lock(&dev->mode_config.mutex);
        ironlake_panel_vdd_off_sync(intel_dp);
-       mutex_unlock(&dev->struct_mutex);
+       mutex_unlock(&dev->mode_config.mutex);
 }
 
 static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync)