From: Rob Clark Date: Sat, 28 Jun 2014 15:11:34 +0000 (-0400) Subject: drm/msm: fix double struct_mutex acquire X-Git-Tag: v3.17-rc1~82^2~18^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b544021f18931258e4e1ef8d88d43dedb73a7ecf;p=platform%2Fkernel%2Flinux-exynos.git drm/msm: fix double struct_mutex acquire Mutex is already grabbed in show_locked().. somehow this slipped through. Signed-off-by: Rob Clark --- diff --git a/drivers/gpu/drm/msm/adreno/a3xx_gpu.c b/drivers/gpu/drm/msm/adreno/a3xx_gpu.c index 942e09d..a2cee06 100644 --- a/drivers/gpu/drm/msm/adreno/a3xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a3xx_gpu.c @@ -392,13 +392,10 @@ static const unsigned int a3xx_registers[] = { #ifdef CONFIG_DEBUG_FS static void a3xx_show(struct msm_gpu *gpu, struct seq_file *m) { - struct drm_device *dev = gpu->dev; int i; adreno_show(gpu, m); - mutex_lock(&dev->struct_mutex); - gpu->funcs->pm_resume(gpu); seq_printf(m, "status: %08x\n", @@ -418,8 +415,6 @@ static void a3xx_show(struct msm_gpu *gpu, struct seq_file *m) } gpu->funcs->pm_suspend(gpu); - - mutex_unlock(&dev->struct_mutex); } #endif