Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1344016 > unrolled thread

[PATCH 3.16.y-ckt 129/129] drm/vmwgfx: Fix an fb unlocking bug

Started byLuis Henriques <luis.henriques@canonical.com>
First post2016-02-26 11:30 +0100
Last post2016-02-26 11:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16.y-ckt 129/129] drm/vmwgfx: Fix an fb unlocking bug Luis Henriques <luis.henriques@canonical.com> - 2016-02-26 11:30 +0100

#1344016 — [PATCH 3.16.y-ckt 129/129] drm/vmwgfx: Fix an fb unlocking bug

FromLuis Henriques <luis.henriques@canonical.com>
Date2016-02-26 11:30 +0100
Subject[PATCH 3.16.y-ckt 129/129] drm/vmwgfx: Fix an fb unlocking bug
Message-ID<r6nOO-1Jb-13@gated-at.bofh.it>
3.16.7-ckt25 -stable review patch.  If anyone has any objections, please let me know.

---8<------------------------------------------------------------

From: Thomas Hellstrom <thellstrom@vmware.com>

commit 12617971c443c50750a12a77ea0e08319d161975 upstream.

A regression introduced when the master ttm lock was split into two.

Reported-and-tested-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
index b031b48dbb3c..21a6ed819401 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
@@ -396,12 +396,12 @@ static int vmw_fb_create_bo(struct vmw_private *vmw_priv,
 
 	*out = vmw_bo;
 
-	ttm_write_unlock(&vmw_priv->fbdev_master.lock);
+	ttm_write_unlock(&vmw_priv->reservation_sem);
 
 	return 0;
 
 err_unlock:
-	ttm_write_unlock(&vmw_priv->fbdev_master.lock);
+	ttm_write_unlock(&vmw_priv->reservation_sem);
 	return ret;
 }
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web